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 XRWebGLSubImage interface is used during rendering of WebGL layers.
Inherits properties from its parent, XRSubImage.
XRWebGLSubImage.colorTexture Read only A color WebGLTexture object for the XRCompositionLayer to render.
XRWebGLSubImage.depthStencilTexture Read only A depth/stencil WebGLTexture object for the XRCompositionLayer to render.
XRWebGLSubImage.imageIndex Read only A number representing the offset into the texture array if the layer was requested with texture-array; null otherwise.
XRWebGLSubImage.colorTextureWidth Read only A number representing the width in pixels of the GL attachment.
XRWebGLSubImage.colorTextureHeight Read only A number representing the height in pixels of the GL attachment.