Firstborn/Library/PackageCache/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/PostProcessEvent.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

43 lines
1.3 KiB
C#

using System.Collections.Generic;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// Injection points for custom effects.
/// </summary>
public enum PostProcessEvent
{
/// <summary>
/// Effects at this injection points will execute before transparent objects are rendered.
/// </summary>
BeforeTransparent = 0,
/// <summary>
/// Effects at this injection points will execute after temporal anti-aliasing and before
/// builtin effects are rendered.
/// </summary>
BeforeStack = 1,
/// <summary>
/// Effects at this injection points will execute after builtin effects have been rendered
/// and before the final pass that does FXAA and applies dithering.
/// </summary>
AfterStack = 2,
}
// Box free comparer for our `PostProcessEvent` enum, else the runtime will box the type when
// used as a key in a dictionary, thus leading to garbage generation... *sigh*
internal struct PostProcessEventComparer : IEqualityComparer<PostProcessEvent>
{
public bool Equals(PostProcessEvent x, PostProcessEvent y)
{
return x == y;
}
public int GetHashCode(PostProcessEvent obj)
{
return (int)obj;
}
}
}