Interface DepthPyramidTaskOptions
interface DepthPyramidTaskOptions {
name?: string;
pyramid: DepthPyramid;
source: () => Texture2D | null;
}
name?: string;
pyramid: DepthPyramid;
source: () => Texture2D | 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 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).
Options for
createDepthPyramidTaskreading a sampled depth texture.