forked from Unity-Technologies/Graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostProcessEvent.cs
More file actions
42 lines (37 loc) · 1.31 KB
/
Copy pathPostProcessEvent.cs
File metadata and controls
42 lines (37 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
}
}
}