Class VrsCustomPass
Variable Rate Shading (VRS) Custom Pass
Implements
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
public class VrsCustomPass : CustomPass, IVersionable<CustomPass.Version>
Fields
vrsColorMask
Color texture to convert into shading rate.
Valid colors are defined by the variable rate shading (VRS) look up table (LUT).
Unity
Declaration
public Texture vrsColorMask
Field Value
Type | Description |
---|---|
Texture |
Methods
Cleanup()
Called when HDRP is destroyed. Allow you to free custom buffers.
Declaration
protected override void Cleanup()
Overrides
Execute(CustomPassContext)
Execute the pass with the fullscreen setup
Declaration
protected override void Execute(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Custom |
ctx | The context of the custom pass. Contains command buffer, render context, buffer, etc. |
Overrides
Setup(ScriptableRenderContext, CommandBuffer)
Called before the first execution of the pass occurs. Allow you to allocate custom buffers.
Declaration
protected override void Setup(ScriptableRenderContext renderContext, CommandBuffer cmd)
Parameters
Type | Name | Description |
---|---|---|
Scriptable |
renderContext | The render context |
Command |
cmd | Current command buffer of the frame |