Skip to main content

Module timestamp

Module timestamp 

Source
Expand description

CPU-side dispatch timing utilities for the GPU compute layer.

ComputeDispatchTimer measures wall-clock time around a compute dispatch using std::time::Instant. On platforms where GPU timestamp queries are available (via the wgpu-backend feature), the companion GpuTimestamp type can record hardware-level start/end values from a timestamp query set.

Structs§

ComputeDispatchTimer
Wall-clock timer for a single compute dispatch.
GpuTimestamp
GPU hardware timestamp pair (start / end), feature-gated to wgpu-backend.

Functions§

dispatch_count_for
Compute the number of workgroups needed to cover n_items in the X dimension.