docs.unity.cn
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public readonly struct 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
    Single

    Methods

    Deconstruct(out CustomPass, out Single)

    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 readonly void Deconstruct(out CustomPass instance, out float priority)
    Parameters
    Type Name Description
    CustomPass instance

    The instance of the custom pass stored in this GlobalCustomPass.

    Single priority

    The priority stored in this GlobalCustomPass.

    Examples
    foreach (var (customPass, priority) in GetGlobalCustomPasses(injectionPoint))
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 01 September 2023