Fix ubsan problems for Tier2 RW storage texture tests Previously, the test code tried to write uint32_t and other 32-bit scalars on unaligned addresses. This occurred when computing expected values. Instead, refactor the expected-value function to take an optional value offset, so the function can be used to generate the initial buffer and the expected values. Fixed: crbug.com/438176030 Change-Id: I6a6a6964998ddfecd419a3f22b577d0913b9b736 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/257294 Commit-Queue: David Neto <dneto@google.com> Auto-Submit: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: 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.