Back to Content

XRSubImage

files/en-us/web/api/xrsubimage/index.md

latest725 B
Original Source

{{APIRef("WebXR Device API")}} {{secureContext_header}}{{SeeCompatTable}}

The XRSubImage interface of the WebXR Device API represents what viewport of the GPU texture to use for rendering.

Interfaces based on XRSubImage

Below is a list of interfaces based on the <code>XRSubImage</code> interface.

  • {{domxref("XRWebGLSubImage")}}: used during rendering of WebGL layers.

Instance properties

  • {{domxref("XRSubImage.viewport")}} {{ReadOnlyInline}} {{Experimental_Inline}}
    • : The {{domxref("XRViewport")}} used when rendering the sub image.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("XRWebGLSubImage")}}