using System.Collections.Generic; namespace UnityEngine.Rendering.PostProcessing { /// /// Injection points for custom effects. /// public enum PostProcessEvent { /// /// Effects at this injection points will execute before transparent objects are rendered. /// BeforeTransparent = 0, /// /// Effects at this injection points will execute after temporal anti-aliasing and before /// builtin effects are rendered. /// BeforeStack = 1, /// /// Effects at this injection points will execute after builtin effects have been rendered /// and before the final pass that does FXAA and applies dithering. /// 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 { public bool Equals(PostProcessEvent x, PostProcessEvent y) { return x == y; } public int GetHashCode(PostProcessEvent obj) { return (int)obj; } } }