XRWebGLSubImage

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRWebGLSubImage interface is used during rendering of WebGL layers.

XRSubImage XRWebGLSubImage

Properties

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.textureWidth Read only

A number representing the width in pixels of the GL attachment.

XRWebGLSubImage.textureHeight Read only

A number representing the height in pixels of the GL attachment.

Specifications

No specification found

No specification data found for api.XRWebGLSubImage.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.XRWebGLSubImage.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also