namespace UnityEngine.Rendering { /// /// Predefined batch layer values used by the GPU Resident Drawer. /// public class BatchLayer { /// /// Batch layer for BatchRendererGroup direct draw commands produced by the GPU Resident Drawer. /// public const byte InstanceCullingDirect = 29; /// /// Batch layer for BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer. /// public const byte InstanceCullingIndirect = 28; /// /// A batch layer mask to include BatchRendererGroup direct draw commands produced by the GPU Resident Drawer. /// Batch layer masks can be used to filter the set of draw calls in a renderer list. /// public const uint InstanceCullingDirectMask = 1u << InstanceCullingDirect; /// /// A batch layer mask to include BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer. /// Batch layer masks can be used to filter the set of draw calls in a renderer list. /// public const uint InstanceCullingIndirectMask = 1u << InstanceCullingIndirect; /// /// A batch layer mask to include BatchRendererGroup direct and indirect draw commands produced by the GPU Resident Drawer. /// Batch layer masks can be used to filter the set of draw calls in a renderer list. /// public const uint InstanceCullingMask = InstanceCullingDirectMask | InstanceCullingIndirectMask; } }