[dawn][native] *Don't* spanify ShaderSourceSPIRV ShaderSourceSPIRV::codeSize is a uint32_t and not a size_t so it cannot be made to transparently use a dawn::Span. Instead add helper function that creates the Span<const uin32_t> and use it where applicable. Also spanify SpirvValidation.h/.cpp as a side effect. Adds an assert that the "length" that we spanify automatically in the input API is a size_t. Bug: 515272358 Change-Id: If2df29f57919db4e47f97a547bde782034a81442 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/320304 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Loko Kung <lokokung@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.