[dawn][tests] Fix UBSan failures in google3. - In C++, our enums are uint32_t, and it seems that in google3, the UBSan tests are failing in these tests because we are assigning 64-bit values to them. Changing them to 0 (the undefined value), or truncating to the last 32 bits seems to fix the tests. - Note that this issue has been blocking Dawn->google3 rolls. Bug: 380277032 Change-Id: I74bd3ce459bc59f54e35d5330da2f195810bdf62 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/224454 Reviewed-by: James Price <jrprice@google.com> Auto-Submit: Loko Kung <lokokung@google.com> Commit-Queue: Loko Kung <lokokung@google.com> Commit-Queue: James Price <jrprice@google.com>
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.