struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<LightD> struct = .new(
factory: LightD.new,
layout: .aligned<LightField>({
.type: RInt(),
.enabled: RBool(),
.position: RStruct(Vector3D.struct),
.target: RStruct(Vector3D.struct),
.color: RStruct(ColorD.struct),
.attenuation: RFloat(),
// Shader locations
.enabledLoc: RInt(),
.typeLoc: RInt(),
.positionLoc: RInt(),
.targetLoc: RInt(),
.colorLoc: RInt(),
.attenuationLoc: RInt(),
}),
);