XR · interface

XrLayer

Explained in XR.

interface XrLayer
import type { XrLayer } from '@driftengine/xr';

Properties

NameTypeDescription
backendreadonlyLayerBackend
baseLayerreadonlyXrWebGlLayer | nullSet on the session's render state. A WebGL layer here; a projection layer goes in layers.
projectionLayerreadonlyunknown | nullThe WebGPU projection layer, when that is the path taken.
reasonreadonlystringA whole sentence when the chosen path was not the one asked for. Empty when it was.