docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureXR

    Utility class providing default textures compatible in any XR setup.

    Inheritance
    object
    TextureXR
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)