Class TextureXR
Utility class providing default textures compatible in any XR setup.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class TextureXR
Properties
Name | Description |
---|---|
dimension | Dimension of XR textures. |
maxViews | Maximum number of views handled by the XR system. |
slices | Number of slices used by the XR system. |
useTexArray | Returns true if the XR system uses texture arrays. |
Methods
Name | Description |
---|---|
GetBlackTexture() | Default black texture. |
GetBlackTexture3D() | Default black texture 3D. |
GetBlackTextureArray() | Default black texture array. |
GetBlackUIntTexture() | Default black unsigned integer texture. |
GetClearTexture() | Default clear color (0, 0, 0, 1) texture. |
GetMagentaTexture() | Default magenta texture. |
GetWhiteTexture() | Default white texture. |
Initialize(CommandBuffer, ComputeShader) | Initialize XR textures. Must be called at least once. |