Struct UnityXRRenderTextureDesc
Description of a texture that the plugin can request to be allocated via IUnityXRDisplayInterface::CreateTexture. Encapsulates both color and depth surfaces.
Inherited Members
Namespace: UnityEngine .XR.OpenXR .API
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct UnityXRRenderTextureDesc
Fields
color
Data for color texture.
Declaration
public UnityXRTextureData color
Field Value
Type | Description |
---|---|
Unity |
colorFormat
Color format of the texture. Format is sRGB if kUnityXRRenderTextureFlagsSRGB is set and there is an equivalent sRGB native format.
Declaration
public UnityXRRenderTextureFormat colorFormat
Field Value
Type | Description |
---|---|
Unity |
depth
Data for depth texture.
Declaration
public UnityXRTextureData depth
Field Value
Type | Description |
---|---|
Unity |
depthFormat
Depth format of the texture.
Declaration
public UnityXRDepthTextureFormat depthFormat
Field Value
Type | Description |
---|---|
Unity |
flags
Combination of #UnityXRRenderTextureFlags.
Declaration
public uint flags
Field Value
Type | Description |
---|---|
uint |
height
Height of the texture in pixels.
Declaration
public uint height
Field Value
Type | Description |
---|---|
uint |
shadingRate
Data for shading rate texture.
Declaration
public UnityXRTextureData shadingRate
Field Value
Type | Description |
---|---|
Unity |
shadingRateFormat
Shading rate texture format.
Declaration
public UnityXRShadingRateFormat shadingRateFormat
Field Value
Type | Description |
---|---|
Unity |
textureArrayLength
If requesting a texture array, the length of the texture array.
Declaration
public uint textureArrayLength
Field Value
Type | Description |
---|---|
uint |
width
Width of the texture in pixels.
Declaration
public uint width
Field Value
Type | Description |
---|---|
uint |