XR · interface

XrCompatibleContext

A context that can be asked to become XR compatible: what probeXrSupport looks for on the object it is handed.

Explained in XR.

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

In depth

Not the parameter's type, which is any object. One optional member makes this a weak type, and the DOM types do not declare makeXRCompatible on WebGL2RenderingContext, so typed as this the context every game draws with failed to compile until it was cast.

Methods

makeXRCompatibleoptional

makeXRCompatible?(): Promise<void>