Struct RTHandleStaticHelpers
This struct contains some static helpers that can be used when converting RTid to RThandle The common use case is to convert rtId to rtHandle and use the handle with other handle compatible core APIs
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct RTHandleStaticHelpers
Fields
s_RTHandleWrapper
Static RTHandle wrapper around RenderTargetIdentifier to avoid gc.alloc
Set this wrapper through RTHandleStaticHelpers.SetRTHandleStaticWrapper
Declaration
public static RTHandle s_RTHandleWrapper
Field Value
Type | Description |
---|---|
RTHandle |
Methods
SetRTHandleStaticWrapper(RenderTargetIdentifier)
Set static RTHandle wrapper given a RTid. The static RTHandle wrapper is treated as external handle in RTHandleSystem
Get the static wrapper through RTHandleStaticHelpers.s_RTHandleWrapper
.
Declaration
public static void SetRTHandleStaticWrapper(RenderTargetIdentifier rtId)
Parameters
Type | Name | Description |
---|---|---|
RenderTargetIdentifier | rtId | Input render target identifier to be converted. |
SetRTHandleUserManagedWrapper(ref RTHandle, RenderTargetIdentifier)
Set user managed RTHandle wrapper given a RTid. The wrapper is treated as external handle in RTHandleSystem
Declaration
public static void SetRTHandleUserManagedWrapper(ref RTHandle rtWrapper, RenderTargetIdentifier rtId)
Parameters
Type | Name | Description |
---|---|---|
RTHandle | rtWrapper | User managed RTHandle wrapper. |
RenderTargetIdentifier | rtId | Input render target identifier to be set. |