Skip to content

Commit

Permalink
fails if timestamp-query is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
John Owens committed Oct 17, 2024
1 parent 9a29e5f commit 9eccac9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions timing-mre.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@
fail("Fatal error: Device does not support WebGPU.");
}

if (!canTimestamp) {
fail(
'Fatal error: Device does not support WebGPU timestamp query (`adapter.features.has("timestamp-query")` is false).'
);
}

const workgroupSize = 64;
const memsrcSize = 2 ** 24;
const timingHelper = new TimingHelper(device);
Expand Down

0 comments on commit 9eccac9

Please sign in to comment.