Interface DepthPyramidRenderTargetTaskOptions
interface DepthPyramidRenderTargetTaskOptions {
name?: string;
pyramid: DepthPyramid;
source: () => RenderTarget | null;
}
name?: string;
pyramid: DepthPyramid;
source: () => RenderTarget | null;
}
Properties
Optionalname
name?: string
Frame-graph task name (shown in GPU timings). Default "depth-pyramid".
pyramid
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
The render target whose single-sample depth attachment is this frame's source. Return null to skip the
build this frame.
Options for
createDepthPyramidTaskreading a render target's depth attachment (e.g. a geometry renderer'sgeometryDepthTexture); the pyramid follows the target's size.