Class RTHandles | High Definition RP | 6.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class RTHandles

    Inheritance
    Object
    RTHandles
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public static class RTHandles

    Properties

    maxHeight

    Declaration
    public static int maxHeight { get; }
    Property Value
    Type Description
    Int32

    maxWidth

    Declaration
    public static int maxWidth { get; }
    Property Value
    Type Description
    Int32

    rtHandleProperties

    Declaration
    public static RTHandleProperties rtHandleProperties { get; }
    Property Value
    Type Description
    RTHandleProperties

    Methods

    Alloc(Int32, Int32, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, MSAASamples, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)

    Declaration
    public static RTHandleSystem.RTHandle Alloc(int width, int height, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, MSAASamples msaaSamples = null, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Int32 slices
    DepthBits depthBufferBits
    GraphicsFormat colorFormat
    FilterMode filterMode
    TextureWrapMode wrapMode
    TextureDimension dimension
    Boolean enableRandomWrite
    Boolean useMipMap
    Boolean autoGenerateMips
    Boolean isShadowMap
    Int32 anisoLevel
    Single mipMapBias
    MSAASamples msaaSamples
    Boolean bindTextureMS
    Boolean useDynamicScale
    Boolean xrInstancing
    RenderTextureMemoryless memoryless
    String name
    Returns
    Type Description
    RTHandleSystem.RTHandle

    Alloc(ScaleFunc, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, Boolean, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)

    Declaration
    public static RTHandleSystem.RTHandle Alloc(ScaleFunc scaleFunc, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, bool enableMSAA = false, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
    Parameters
    Type Name Description
    ScaleFunc scaleFunc
    Int32 slices
    DepthBits depthBufferBits
    GraphicsFormat colorFormat
    FilterMode filterMode
    TextureWrapMode wrapMode
    TextureDimension dimension
    Boolean enableRandomWrite
    Boolean useMipMap
    Boolean autoGenerateMips
    Boolean isShadowMap
    Int32 anisoLevel
    Single mipMapBias
    Boolean enableMSAA
    Boolean bindTextureMS
    Boolean useDynamicScale
    Boolean xrInstancing
    RenderTextureMemoryless memoryless
    String name
    Returns
    Type Description
    RTHandleSystem.RTHandle

    Alloc(Vector2, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, Boolean, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)

    Declaration
    public static RTHandleSystem.RTHandle Alloc(Vector2 scaleFactor, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, bool enableMSAA = false, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
    Parameters
    Type Name Description
    Vector2 scaleFactor
    Int32 slices
    DepthBits depthBufferBits
    GraphicsFormat colorFormat
    FilterMode filterMode
    TextureWrapMode wrapMode
    TextureDimension dimension
    Boolean enableRandomWrite
    Boolean useMipMap
    Boolean autoGenerateMips
    Boolean isShadowMap
    Int32 anisoLevel
    Single mipMapBias
    Boolean enableMSAA
    Boolean bindTextureMS
    Boolean useDynamicScale
    Boolean xrInstancing
    RenderTextureMemoryless memoryless
    String name
    Returns
    Type Description
    RTHandleSystem.RTHandle

    Initialize(Int32, Int32, Boolean, MSAASamples)

    Declaration
    public static void Initialize(int width, int height, bool scaledRTsupportsMSAA, MSAASamples scaledRTMSAASamples)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Boolean scaledRTsupportsMSAA
    MSAASamples scaledRTMSAASamples

    Release(RTHandleSystem.RTHandle)

    Declaration
    public static void Release(RTHandleSystem.RTHandle rth)
    Parameters
    Type Name Description
    RTHandleSystem.RTHandle rth

    SetHardwareDynamicResolutionState(Boolean)

    Declaration
    public static void SetHardwareDynamicResolutionState(bool hwDynamicResRequested)
    Parameters
    Type Name Description
    Boolean hwDynamicResRequested

    SetReferenceSize(Int32, Int32, MSAASamples)

    Declaration
    public static void SetReferenceSize(int width, int height, MSAASamples msaaSamples)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    MSAASamples msaaSamples
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023