docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CustomPassVolume.GlobalCustomPass

    Data structure used to store the global custom pass data needed for evaluation during the frame.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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))
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)