API

Interface DepthPyramidRenderTargetTaskOptions

Options for createDepthPyramidTask reading a render target's depth attachment (e.g. a geometry renderer's geometryDepthTexture); the pyramid follows the target's size.

interface DepthPyramidRenderTargetTaskOptions {
    name?: string;
    pyramid: DepthPyramid;
    source: () => RenderTarget | null;
}
Index
name?: string

Frame-graph task name (shown in GPU timings). Default "depth-pyramid".

pyramid: DepthPyramid

The pyramid to build each frame. The task ADOPTS it — the frame graph disposes it on graph dispose, so do not also dispose it yourself.

source: () => RenderTarget | null

The render target whose single-sample depth attachment is this frame's source. Return null to skip the build this frame.