XR · interface
XrLayer
Explained in XR.
interface XrLayerimport type { XrLayer } from '@driftengine/xr';Properties
| Name | Type | Description |
|---|---|---|
backendreadonly | LayerBackend | |
baseLayerreadonly | XrWebGlLayer | null | Set on the session's render state. A WebGL layer here; a projection layer goes in layers. |
projectionLayerreadonly | unknown | null | The WebGPU projection layer, when that is the path taken. |
reasonreadonly | string | A whole sentence when the chosen path was not the one asked for. Empty when it was. |