Interface XrGpuSubImage
interface XrGpuSubImage {
colorTexture: GPUTexture;
depthStencilTexture: GPUTexture | null;
motionVectorTexture: GPUTexture | null;
getViewDescriptor(): GPUTextureViewDescriptor;
}
colorTexture: GPUTexture;
depthStencilTexture: GPUTexture | null;
motionVectorTexture: GPUTexture | null;
getViewDescriptor(): GPUTextureViewDescriptor;
}
Hierarchy
- XRSubImage
- XrGpuSubImage
Properties
Readonlycolor Texture
colorTexture: GPUTexture
Color texture to render the view into.
Readonlydepth Stencil Texture
depthStencilTexture: GPUTexture | null
Depth/stencil texture, or null when the layer has no depth attachment.
Readonlymotion Vector Texture
motionVectorTexture: GPUTexture | null
Motion-vector texture for space-warp reprojection, when supported.
A per-view sub-image of an XR layer: the WebGPU textures (and viewport) the app renders one eye into for the current frame. Mirrors the draft
XRGPUSubImage; extends the shippedXRSubImage(which suppliesviewport).