struct property

StructType<VrDeviceInfoD> struct
final

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

Implementation

static final StructType<VrDeviceInfoD> struct = .new(
  factory: VrDeviceInfoD.new,
  layout: .aligned<VrDeviceInfoField>({
    .hResolution:            RInt(), // Horizontal resolution in pixels
    .vResolution:            RInt(), // Vertical resolution in pixels
    .hScreenSize:            RFloat(), // Horizontal size in meters
    .vScreenSize:            RFloat(), // Vertical size in meters
    .eyeToScreenDistance:    RFloat(), // Distance between eye and display in meters
    .lensSeparationDistance: RFloat(), // Lens separation distance in meters
    .interpupillaryDistance: RFloat(), // IPD (distance between pupils) in meters
    .lensDistortionValues:   RArray(RFloat(), BASE_paramsCount), // Lens distortion constant parameters
    .chromaAbCorrection:     RArray(RFloat(), BASE_paramsCount), // Chromatic aberration correction parameters
  }),
);