XRLayerInit constructor

XRLayerInit({
  1. required XRSpace space,
  2. int? colorFormat,
  3. int? depthFormat,
  4. int? mipLevels,
  5. int? viewPixelWidth,
  6. int? viewPixelHeight,
  7. XRLayerLayout? layout,
  8. bool? isStatic,
})

Implementation

factory XRLayerInit(
        {required XRSpace space,
        int? colorFormat,
        int? depthFormat,
        int? mipLevels,
        int? viewPixelWidth,
        int? viewPixelHeight,
        XRLayerLayout? layout,
        bool? isStatic}) =>
    XRLayerInit._(
        space: space,
        colorFormat: colorFormat ?? 0x1908,
        depthFormat: depthFormat ?? undefined,
        mipLevels: mipLevels ?? 1,
        viewPixelWidth: viewPixelWidth ?? undefined,
        viewPixelHeight: viewPixelHeight ?? undefined,
        layout: layout?.value ?? XRLayerLayout.mono.value,
        isStatic: isStatic ?? false);