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