API

Interface XrGpuProjectionLayerInit

interface XrGpuProjectionLayerInit {
    colorFormat: GPUTextureFormat;
    depthStencilFormat?: GPUTextureFormat;
    scaleFactor?: number;
    textureUsage?: number;
}
Index
colorFormat: GPUTextureFormat

Color format of the layer's per-view textures.

depthStencilFormat?: GPUTextureFormat

Depth/stencil format handed to the compositor for reprojection, if any.

scaleFactor?: number

Render-resolution scale relative to XrGpuBinding.nativeProjectionScaleFactor.

textureUsage?: number

Extra texture-usage flags ORed into the layer's textures.