Add check-capture-replay flag
Add --check-capture-replay flag for dawn_end2end_tests.
When it's on it turns on capture the test body.
On Teardown it finish capturing and replay the capture.
For each Buffer and Texture readback expectations,
it get and map the replayed readback buffer by label
comparing the raw bytes to the
original readback buffer to see if it is an exact match.
Add a temp allowlist toggle enable_for_check_capture_replay at the
same time. Since many tests will fail checking capture_replay
at this time, instead of suppressing failure tests, we turn on
passing tests by specifying a
WebGPUBackend({"enable_for_check_capture_replay"}) config.
Locally we can run dawn_end2end_tests with --check-capture-replay
and --enable-toggles=enable_for_check_capture_replay at the same
time to turn on check capture replay.
Once implementation are more complete we can remove
enable_for_check_capture_replay.
Bug: 462149555
Change-Id: I9c9585e5821d681c76d04b61af56226b5849cef3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/274934
Commit-Queue: Shrek Shao <shrekshao@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Shrek Shao <shrekshao@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.