XR · interface

LayerSources

What a caller offers. Whichever of the two it has; both is allowed and neither is not.

Explained in XR.

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

Properties

NameTypeDescription
glreadonlyoptionalunknownA WebGL2 context, already made XR compatible by the caller.
devicereadonlyoptionalunknownA GPUDevice.