struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<ModelSkeleton> struct = ._builtin(
factory: ModelSkeleton.new,
layout: .aligned<ModelSkeletonField>({
.boneCount: RInt(), // Number of bones
.bones: RPointer(RStruct(BoneInfo.struct)), // Bones information (skeleton)
.bindPose: RPointer(RStruct(Transform.struct)), // Bones base transformation (Transform[])
}),
);