webxrlayers_1 library Null safety

WebXR Layers API Level 1

https://immersive-web.github.io/layers/

Classes

XRCompositionLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a base class that defines a set of common properties and behaviors for WebXR layer types. It is not constructable on its own. Several layer types inherit from :
XRCubeLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a layer that renders directly from a cubemap and projects it onto the inside faces of a cube. requires the layers feature to be enabled for the XRSession. You can request it in XRSystem.requestSession(). To create a new , call XRWebGLBinding.createCubeLayer(). To present layers to the XR device, add them to the layers render state using XRSession.updateRenderState().
XRCubeLayerInit
XRCylinderLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a layer that takes up a curved rectangular space in the virtual environment. Only the front of the layer is visible. requires the layers feature to be enabled for the XRSession. You can request it in XRSystem.requestSession(). To create a new , call either:
XRCylinderLayerInit
XREquirectLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a layer that maps equirectangular coded data onto the inside of a sphere. requires the layers feature to be enabled for the XRSession. You can request it in XRSystem.requestSession(). To create a new , call either:
XREquirectLayerInit
XRLayerEvent
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is the event type for events related to a change of state of an XRLayer object. These events occur, for example, when the layer needs to be redrawn.
XRLayerEventInit
XRLayerInit
XRMediaBinding
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface is used to create layers that display the content of an HTMLVideoElement.
XRMediaCylinderLayerInit
XRMediaEquirectLayerInit
XRMediaLayerInit
XRMediaQuadLayerInit
XRProjectionLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a layer that fills the entire view of the observer and is refreshed close to the device's native frame rate. is supported by all XRSession objects (no layers feature descriptor is needed).
XRProjectionLayerInit
XRQuadLayer
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API is a layer that takes up a flat rectangular space in the virtual environment. An has no thickness. It is a two-dimensional object positioned and oriented in 3D space. The position of a quad refers to the center of the quad. Only the front of the layer is visible. requires the layers feature to be enabled for the XRSession. You can request it in XRSystem.requestSession(). To create a new , call either:
XRQuadLayerInit
XRSubImage
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebXR Device API represents what viewport of the GPU texture to use for rendering.
XRWebGLBinding
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface is used to create layers that have a GPU backend.
XRWebGLSubImage
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface is used during rendering of WebGL layers.

Extensions

PropsXRCompositionLayer
PropsXRCubeLayer
PropsXRCubeLayerInit
PropsXRCylinderLayer
PropsXRCylinderLayerInit
PropsXREquirectLayer
PropsXREquirectLayerInit
PropsXRLayerEvent
PropsXRLayerEventInit
PropsXRLayerInit
PropsXRMediaBinding
PropsXRMediaCylinderLayerInit
PropsXRMediaEquirectLayerInit
PropsXRMediaLayerInit
PropsXRMediaQuadLayerInit
PropsXRProjectionLayer
PropsXRProjectionLayerInit
PropsXRQuadLayer
PropsXRQuadLayerInit
PropsXRSubImage
PropsXRWebGLBinding
PropsXRWebGLSubImage

Enums

XRLayerLayout
XRTextureType