API

Interface DepthPyramidTaskOptions

Options for createDepthPyramidTask reading a sampled depth texture.

interface DepthPyramidTaskOptions {
    name?: string;
    pyramid: DepthPyramid;
    source: () => Texture2D | 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: () => Texture2D | null

The live source depth texture for this frame (e.g. a depth-prepass target). Return null to skip the build this frame (e.g. before the source exists, or when nothing consumes the pyramid).