docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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
    UnityXRTextureData

    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
    UnityXRRenderTextureFormat

    depth

    Data for depth texture.

    Declaration
    public UnityXRTextureData depth
    Field Value
    Type Description
    UnityXRTextureData

    depthFormat

    Depth format of the texture.

    Declaration
    public UnityXRDepthTextureFormat depthFormat
    Field Value
    Type Description
    UnityXRDepthTextureFormat

    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
    UnityXRTextureData

    shadingRateFormat

    Shading rate texture format.

    Declaration
    public UnityXRShadingRateFormat shadingRateFormat
    Field Value
    Type Description
    UnityXRShadingRateFormat

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)