LDKMaterialInstance
typedef struct LDKMaterialInstance{
LDKAssetTextureAtlas atlas;
u64 sprite_id;
LDKAssetTextureAtlas cached_atlas;
u64 cached_revision;
u64 cached_sprite_id;
u64 cached_default_sprite_id;
u32 cached_image_width;
u32 cached_image_height;
Vec4 cached_uv_rect;
bool cached_drawable;
bool cache_valid;
}LDKMaterialInstance;
ldk_material_instance_component_desc
Build the ECS registration descriptor for the material instance component.
LDK_API LDKComponentDesc ldk_material_instance_component_desc(u32 initial_capacity);
Parameters
u32 initial_capacity
- Initial number of entries reserved in the registry.
Returns
A descriptor for the requested component or resource.