struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<Material> struct = ._builtin(
factory: Material.new,
layout: .aligned<MaterialField>({
.shader: RStruct(Shader.struct), // Material shader
.maps: RPointer(RArray(RStruct(MaterialMap.struct), BASE_mapsCount)), // Material maps array (MAX_MATERIAL_MAPS)
.params: RArray(RFloat(), BASE_paramsCount), // Material generic parameters (if required)
}),
);