A game about forced loneliness, made by TACStudios
1namespace UnityEngine.Rendering
2{
3 /// <summary>
4 /// Predefined batch layer values used by the GPU Resident Drawer.
5 /// </summary>
6 public class BatchLayer
7 {
8 /// <summary>
9 /// Batch layer for BatchRendererGroup direct draw commands produced by the GPU Resident Drawer.
10 /// </summary>
11 public const byte InstanceCullingDirect = 29;
12
13 /// <summary>
14 /// Batch layer for BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer.
15 /// </summary>
16 public const byte InstanceCullingIndirect = 28;
17
18 /// <summary>
19 /// A batch layer mask to include BatchRendererGroup direct draw commands produced by the GPU Resident Drawer.
20 /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
21 /// </summary>
22 public const uint InstanceCullingDirectMask = 1u << InstanceCullingDirect;
23
24 /// <summary>
25 /// A batch layer mask to include BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer.
26 /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
27 /// </summary>
28 public const uint InstanceCullingIndirectMask = 1u << InstanceCullingIndirect;
29
30 /// <summary>
31 /// A batch layer mask to include BatchRendererGroup direct and indirect draw commands produced by the GPU Resident Drawer.
32 /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
33 /// </summary>
34 public const uint InstanceCullingMask = InstanceCullingDirectMask | InstanceCullingIndirectMask;
35 }
36}