Files
wgpu/examples/timestamp-queries
Andreas Reich 0ffdae31a1 Metal encoder & pass timestamp support (#4008)
Implements timer queries via write_timestamp on Metal for encoders (whenever timer queries are available) and passes (for Intel/AMD GPUs, where we should advertise TIMESTAMP_QUERY_INSIDE_PASSES now).

Due to some bugs in Metal this was a lot harder than expected. I believe the solution is close to optimal with the current restrictions in place. For details see code comments.
2023-09-16 20:01:46 +00:00
..
2023-08-02 18:04:24 -04:00
2023-08-02 18:04:24 -04:00

timestamp-queries

This example shows various ways of querying time when supported.

To Run

cargo run --bin timestamp-queries