API

Interface DepthPyramidTaskOptions

Options for createDepthPyramidTask.

interface DepthPyramidTaskOptions {
    pyramid: DepthPyramid;
    source: () => Texture2D | null;
}
Index
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).