Struct CustomPassVolume.GlobalCustomPass
Data structure used to store the global custom pass data needed for evaluation during the frame.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public readonly struct CustomPassVolume.GlobalCustomPass
Fields
instance
The custom pass instance to be executed.
Declaration
public readonly CustomPass instance
Field Value
| Type | Description |
|---|---|
| CustomPass |
priority
The priority this custom pass has been added. Define in which order the global custom passes will be executed.
Declaration
public readonly float priority
Field Value
| Type | Description |
|---|---|
| float |
Methods
Deconstruct(out CustomPass, out float)
Utility function to deconstruct a global custom pass into a tuple. You can use it directly in a foreach to avoid declaring an intermediate field to store the GlobalCustomPass instance.
Declaration
public void Deconstruct(out CustomPass instance, out float priority)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomPass | instance | The instance of the custom pass stored in this GlobalCustomPass. |
| float | priority | The priority stored in this GlobalCustomPass. |
Examples
foreach (var (customPass, priority) in GetGlobalCustomPasses(injectionPoint))