struct property

StructType<VrStereoConfigD> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<VrStereoConfigD> struct = .new(
  factory: VrStereoConfigD.new,
  layout: .aligned<VrStereoConfigField>({
    .projection:        RArray(RStruct(MatrixD.struct), BASE_paramsCount), // VR projection matrices (per eye)
    .viewOffset:        RArray(RStruct(MatrixD.struct), BASE_paramsCount), // VR view offset matrices (per eye)
    .leftLensCenter:    RArray(RFloat(), BASE_paramsCount), // VR left lens center
    .rightLensCenter:   RArray(RFloat(), BASE_paramsCount), // VR right lens center
    .leftScreenCenter:  RArray(RFloat(), BASE_paramsCount), // VR left screen center
    .rightScreenCenter: RArray(RFloat(), BASE_paramsCount), // VR right screen center
    .scale:             RArray(RFloat(), BASE_paramsCount), // VR distortion scale
    .scaleIn:           RArray(RFloat(), BASE_paramsCount), // VR distortion scale in
  }),
);