XRWebGLSubImage
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheXRWebGLSubImage interface is used during rendering of WebGL layers.
In this article
Instance properties
Inherits properties from its parent,XRSubImage.
XRWebGLSubImage.colorTextureRead onlyExperimentalA color
WebGLTextureobject for theXRCompositionLayerto render.XRWebGLSubImage.depthStencilTextureRead onlyExperimentalA depth/stencil
WebGLTextureobject for theXRCompositionLayerto render.XRWebGLSubImage.imageIndexRead onlyExperimentalA number representing the offset into the texture array if the layer was requested with
texture-array;nullotherwise.XRWebGLSubImage.colorTextureWidthRead onlyExperimentalA number representing the width in pixels of the GL attachment.
XRWebGLSubImage.colorTextureHeightRead onlyExperimentalA number representing the height in pixels of the GL attachment.
Specifications
| Specification |
|---|
| WebXR Layers API Level 1> # xrwebglsubimagetype> |