Class OcclusionTestMethods
Extension methods for OcclusionTest.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.GPUDriven.Runtime.dll
Syntax
public static class OcclusionTestMethods
Methods
GetBatchLayerMask(OcclusionTest)
Converts this occlusion test into a batch layer mask for rendering. This helper function is used to limit the second rendering pass when building occluders to only indirect draw calls, so that only false positives from the first rendering pass are rendered.
Declaration
public static uint GetBatchLayerMask(this OcclusionTest occlusionTest)
Parameters
Type | Name | Description |
---|---|---|
OcclusionTest | occlusionTest | The occlusion test. |
Returns
Type | Description |
---|---|
uint | The batch layer mask that should be used to render the results of this occlusion test. |