web api interface
XRWebGLSubImage
Secure contextLimited availability
The XRWebGLSubImage interface is used during rendering of WebGL layers.
Instance properties
Inherits properties from its parent, XRSubImage.
colorTextureRead only Experimental- : A color
WebGLTextureobject for theXRCompositionLayerto render.
- : A color
depthStencilTextureRead only Experimental- : A depth/stencil
WebGLTextureobject for theXRCompositionLayerto render.
- : A depth/stencil
imageIndexRead only Experimental- : A number representing the offset into the texture array if the layer was requested with
texture-array;nullotherwise.
- : A number representing the offset into the texture array if the layer was requested with
colorTextureWidthRead only Experimental- : A number representing the width in pixels of the GL attachment.
colorTextureHeightRead only Experimental- : A number representing the height in pixels of the GL attachment.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.