Table of Contents

Class XRWebGLSubImage

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRWebGLSubImage interface is used during rendering of WebGL layers.
[Value("XRWebGLSubImage")]
public class XRWebGLSubImage : XRSubImage
Inheritance
XRWebGLSubImage
Inherited Members

Remarks

Constructors

XRWebGLSubImage()

public XRWebGLSubImage()

Properties

ColorTexture

NOTE
Experimental
The read-only colorTexture property of the XRWebGLSubImage interface represents the color WebGLTexture object for the XRCompositionLayer to render.
[Value("colorTexture")]
public WebGLTexture ColorTexture { get; }

Property Value

WebGLTexture

An opaque WebGLTexture. See WebXR opaque textures for details.

Remarks

-WebGL2RenderingContext.FramebufferTextureLayer

See also on MDN

ColorTextureHeight

NOTE
Experimental
The read-only colorTextureHeight property of the XRWebGLSubImage interface is a number representing the height in pixels of the GL attachment.
[Value("colorTextureHeight")]
public ulong ColorTextureHeight { get; }

Property Value

ulong

A number indicating the height in pixels.

Remarks

ColorTextureWidth

NOTE
Experimental
The read-only colorTextureWidth property of the XRWebGLSubImage interface is a number representing the width in pixels of the GL attachment.
[Value("colorTextureWidth")]
public ulong ColorTextureWidth { get; }

Property Value

ulong

A number indicating the width in pixels.

Remarks

DepthStencilTexture

NOTE
Experimental
The read-only depthStencilTexture property of the XRWebGLSubImage interface represents the depth/stencil WebGLTexture object for the XRCompositionLayer to render.
[Value("depthStencilTexture")]
public WebGLTexture? DepthStencilTexture { get; }

Property Value

WebGLTexture

An opaque WebGLTexture. See WebXR opaque textures for details.

Remarks

-WebGL2RenderingContext.FramebufferTextureLayer

See also on MDN

DepthStencilTextureHeight

[Value("depthStencilTextureHeight")]
public ulong? DepthStencilTextureHeight { get; }

Property Value

ulong?

DepthStencilTextureWidth

[Value("depthStencilTextureWidth")]
public ulong? DepthStencilTextureWidth { get; }

Property Value

ulong?

ImageIndex

NOTE
Experimental
The read-only imageIndex property of the XRWebGLSubImage interface is a number representing the offset into the texture array if the layer was requested with texture-array; null otherwise.
[Value("imageIndex")]
public ulong? ImageIndex { get; }

Property Value

ulong?

A number or null if the layer wasn't requested with texture-array.

Remarks

-WebGL2RenderingContext.FramebufferTextureLayer

See also on MDN

MotionVectorTexture

[Value("motionVectorTexture")]
public WebGLTexture? MotionVectorTexture { get; }

Property Value

WebGLTexture

MotionVectorTextureHeight

[Value("motionVectorTextureHeight")]
public ulong? MotionVectorTextureHeight { get; }

Property Value

ulong?

MotionVectorTextureWidth

[Value("motionVectorTextureWidth")]
public ulong? MotionVectorTextureWidth { get; }

Property Value

ulong?