docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum UnityXRRenderTextureFormat

    Format for color texture.

    Namespace: UnityEngine.XR.OpenXR.API
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public enum UnityXRRenderTextureFormat

    Fields

    Name Description
    kUnityXRRenderTextureFormatBGRA1010102

    B10 G10 R10 A2 Unorm

    kUnityXRRenderTextureFormatBGRA32

    B8 G8 R8 A8

    kUnityXRRenderTextureFormatNone

    No color texture.

    kUnityXRRenderTextureFormatR11G11B10_UFloat

    R11 G11 B10 unsigned small floating point

    kUnityXRRenderTextureFormatR16G16B16A16_SFloat

    R16 G16 B16 A16 signed half-float

    kUnityXRRenderTextureFormatRGB565

    R5 G6 B5

    kUnityXRRenderTextureFormatRGBA1010102

    R10 G10 B10 A2 Unorm

    kUnityXRRenderTextureFormatRGBA32

    R8 G8 B8 A8

    kUnityXRRenderTextureFormatReference

    Don't create a color texture, instead create a reference to another color texture that's already been created. Must fill out UnityTextureData::referenceTextureId.

    kUnityXRRenderTextureFormatSoftReferenceMSAA

    Don't create a whole new color texture; soft-alias the MSAA attachment, yet still construct the MSAA-resolved 1x texture as unique. This allows memory sharing for MSAA when mobile clients need to both autoresolve yet also share the MSAA textures.

    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)