Class OcclusionDebugRenderer
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Debug visualization renderer for occluded object bounds in occlusion culling. Renders bounding boxes directly from GPU buffer using procedural vertex generation.
public class OcclusionDebugRendererInheritance
object ← OcclusionDebugRenderer
Constructors
OcclusionDebugRenderer(Scene, RendererContext)
Initializes the occlusion debug renderer and loads the debug shaders.
public OcclusionDebugRenderer(Scene scene, RendererContext rendererContext)Parameters
scene Scene
Scene to visualize occlusion for.
rendererContext RendererContext
Renderer context for loading shaders and GPU resources.
Methods
BindAndClearBuffer()
Allocates (if needed) and clears the GPU buffer that receives occluded bounds from the culling shader.
public void BindAndClearBuffer()DispatchFinalize()
Dispatches a single-invocation compute shader that turns the occluded-object atomic counter into a DrawArraysIndirectCommand, entirely on the GPU.
public void DispatchFinalize()Render()
Renders wireframe bounding boxes for all occluded meshlets, color-coded by whether occlusion was correct.
public void Render()
