暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

BatchLayers.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace 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. /// <summary>
  13. /// Batch layer for BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer.
  14. /// </summary>
  15. public const byte InstanceCullingIndirect = 28;
  16. /// <summary>
  17. /// A batch layer mask to include BatchRendererGroup direct draw commands produced by the GPU Resident Drawer.
  18. /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
  19. /// </summary>
  20. public const uint InstanceCullingDirectMask = 1u << InstanceCullingDirect;
  21. /// <summary>
  22. /// A batch layer mask to include BatchRendererGroup indirect draw commands produced by the GPU Resident Drawer.
  23. /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
  24. /// </summary>
  25. public const uint InstanceCullingIndirectMask = 1u << InstanceCullingIndirect;
  26. /// <summary>
  27. /// A batch layer mask to include BatchRendererGroup direct and indirect draw commands produced by the GPU Resident Drawer.
  28. /// Batch layer masks can be used to filter the set of draw calls in a renderer list.
  29. /// </summary>
  30. public const uint InstanceCullingMask = InstanceCullingDirectMask | InstanceCullingIndirectMask;
  31. }
  32. }