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§
- Compute
Dispatch Timer - 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_itemsin the X dimension.