This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
VRLayerInit interface (dictionary) of the WebVR API represents a content layer (an
OffscreenCanvas) that you want to present in a VR display.
You can retrieve
VRLayerInit objects using
VRDisplay.getLayers(), and present them using the
- Defines the left texture bounds of the canvas whose contents will be presented by the
- Defines the right texture bounds of the canvas whose contents will be presented by the
- Defines the canvas whose contents will be presented by the
VRDisplay.submitFrame() is called.
||Firefox Mobile (Gecko)
||Chrome for Android
||Samsung Internet for GearVR
Document Tags and Contributors