Skip to main content

run_gpu_vision_chain_profiled

Function run_gpu_vision_chain_profiled 

Source
pub fn run_gpu_vision_chain_profiled(
    runtime: &WgpuRuntime,
    source: &GpuImage,
    options: GpuVisionChainOptions,
    profiler: &mut GpuStageProfiler,
) -> SpatialResult<GpuAiTensor>
Expand description

Runs the resident image chain with five to eight compute-pass timing samples.

Queries remain on the device until the caller explicitly collects the profiler. Small blur/morphology workloads need five unused stages for matching dimensions or six when resizing. Blur boxes with area at least 81 and at least 65,536 pixel/sample visits add one for the unrounded horizontal-sum pass. Morphology with area at least 81 and at least 1,048,576 visits adds a horizontal extrema sample.