The XRWebGLSubImage
interface is used during rendering of WebGL layers.
Instance properties
Inherits properties from its parent, XRSubImage
.
-
XRWebGLSubImage.colorTexture
Read only Experimental
-
A color WebGLTexture
object for the XRCompositionLayer
to render.
-
XRWebGLSubImage.depthStencilTexture
Read only Experimental
-
A depth/stencil WebGLTexture
object for the XRCompositionLayer
to render.
-
XRWebGLSubImage.imageIndex
Read only Experimental
-
A number representing the offset into the texture array if the layer was requested with texture-array
; null
otherwise.
-
XRWebGLSubImage.colorTextureWidth
Read only Experimental
-
A number representing the width in pixels of the GL attachment.
-
XRWebGLSubImage.colorTextureHeight
Read only Experimental
-
A number representing the height in pixels of the GL attachment.
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
XRWebGLSubImage |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
colorTexture |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
colorTextureHeight |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
colorTextureWidth |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
depthStencilTexture |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
imageIndex |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
No |
See also