[cleanup] Replace `#pragma allow_unsafe_buffers` with targeted TODOs Transition from file-wide or block-wide `#pragma allow_unsafe_buffers` to targeted, line-level markings using `DAWN_UNSAFE_TODO`. This makes unsafe buffer usages more explicit and searchable, facilitating future cleanup work to eliminate them. Changes: - Removed `#pragma allow_unsafe_buffers` blocks where applicable. - Wrapped specific unsafe operations (e.g., `memcpy`, `fread`, `fwrite`, array indexing) in `DAWN_UNSAFE_TODO`. > NOTE: This patch includes files with <= 10 `DAWN_UNSAFE_TODO` insertions Bug: chromium:507077205 Doc: go/unsafe-buffer-dawn Change-Id: Iaac31fa026878a13b8cb82a5d6ab060f538028f3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/308557 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Brandon Jones <bajones@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.