Class QuadOverdraw
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Quad overdraw debug visualization.
public class QuadOverdrawInheritance
Remarks
The frame is drawn once for depth, then again through each material's overdraw mode to count primitives per 2x2 pixel quad.
Constructors
QuadOverdraw(RendererContext)
Quad overdraw debug visualization.
public QuadOverdraw(RendererContext rendererContext)Parameters
rendererContext RendererContext
Remarks
The frame is drawn once for depth, then again through each material's overdraw mode to count primitives per 2x2 pixel quad.
Properties
IsActive
Gets whether the current render mode has activated the quad overdraw visualization.
public bool IsActive { get; }Property Value
SceneShader
Gets the counting shader used by materials whose own shader has no overdraw mode.
public Shader SceneShader { get; }Property Value
Methods
BeginCountingPass(Framebuffer)
Keeps the first render's depth and has the counting render test against it.
public void BeginCountingPass(Framebuffer framebuffer)Parameters
framebuffer Framebuffer
Dispose()
Releases the GPU buffer owned by this visualization.
public void Dispose()EndCountingPass(Framebuffer)
Restores the depth state changed by .
public void EndCountingPass(Framebuffer framebuffer)Parameters
framebuffer Framebuffer
Load()
Loads the shaders up front so the render mode is registered for the mode dropdown.
public void Load()Prepare(int, int)
Sizes, zeroes and binds the count buffer. Call before the first scene render of the frame.
public void Prepare(int width, int height)Parameters
width int
height int
Render()
Replaces the framebuffer contents with the overdraw heat map. Call after the counting render.
public void Render()SetRenderMode(string)
Updates based on the active render mode name.
public void SetRenderMode(string renderMode)Parameters
renderMode string

