makeXRCompatible method
The WebGLRenderingContext method
makeXRCompatible()
ensures that the rendering context
described by the WebGLRenderingContext
is ready to render the scene for
the
immersive
WebXR
device on which it
will be displayed. If necessary, the
WebGL
layer may reconfigure the context to be ready to render to a different
device than it
originally was.
This is useful if you have an application which can start out being presented on a standard 2D display but can then be transitioned to a 3D immersion system.
Implementation
external JSPromise<JSAny?> makeXRCompatible();