tint: Implement Switch() without recursion This removes the number of function calls made in non-optimized builds. Reduces the optimized, all-features-enabled 'tint' executable size by about 1%. This change removes the bloom filter optimizations which provided substantial performance gains with the old recursive implementation, however this still appears to be ~1% faster than the optimized version. Change-Id: Ic2bb82e9182459e37907f9e0d0b4771bde218f9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123440 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Kokoro: Ben Clayton <bclayton@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.