Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The XRCompositionLayer
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 XRCompositionLayer
:
XRCompositionLayer
itself inherits from the general XRLayer
class (which inherits from EventTarget
).