Interface XrGpuProjectionLayerInit
interface XrGpuProjectionLayerInit {
colorFormat: GPUTextureFormat;
depthStencilFormat?: GPUTextureFormat;
scaleFactor?: number;
textureUsage?: number;
}
colorFormat: GPUTextureFormat;
depthStencilFormat?: GPUTextureFormat;
scaleFactor?: number;
textureUsage?: number;
}
Properties
color Format
colorFormat: GPUTextureFormat
Color format of the layer's per-view textures.
Optionaldepth Stencil Format
depthStencilFormat?: GPUTextureFormat
Depth/stencil format handed to the compositor for reprojection, if any.
Optionalscale Factor
scaleFactor?: number
Render-resolution scale relative to XrGpuBinding.nativeProjectionScaleFactor.
Optionaltexture Usage
textureUsage?: number
Extra texture-usage flags ORed into the layer's textures.
Init dictionary for XrGpuBinding.createProjectionLayer.