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

    Class RTHandleSystem

    Inheritance
    Object
    RTHandleSystem
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public class RTHandleSystem : IDisposable

    Constructors

    RTHandleSystem()

    Declaration
    public RTHandleSystem()

    Properties

    rtHandleProperties

    Declaration
    public 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 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 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 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

    DemandResize(RTHandleSystem.RTHandle)

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

    Dispose()

    Declaration
    public void Dispose()

    DumpRTInfo()

    Declaration
    public string DumpRTInfo()
    Returns
    Type Description
    String

    GetMaxHeight()

    Declaration
    public int GetMaxHeight()
    Returns
    Type Description
    Int32

    GetMaxWidth()

    Declaration
    public int GetMaxWidth()
    Returns
    Type Description
    Int32

    Initialize(Int32, Int32, Boolean, MSAASamples)

    Declaration
    public 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 void Release(RTHandleSystem.RTHandle rth)
    Parameters
    Type Name Description
    RTHandleSystem.RTHandle rth

    SetHardwareDynamicResolutionState(Boolean)

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

    SetReferenceSize(Int32, Int32, MSAASamples)

    Declaration
    public void SetReferenceSize(int width, int height, MSAASamples msaaSamples)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    MSAASamples msaaSamples

    SwitchResizeMode(RTHandleSystem.RTHandle, RTHandleSystem.ResizeMode)

    Declaration
    public void SwitchResizeMode(RTHandleSystem.RTHandle rth, RTHandleSystem.ResizeMode mode)
    Parameters
    Type Name Description
    RTHandleSystem.RTHandle rth
    RTHandleSystem.ResizeMode mode
    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