[tint][ir] Reuse the validator's scope sets The validator's ScopeStack pushed a new set for every block it entered, and destroyed it when the block was left. ScopeStack now keeps the set of a popped scope and clears it on the next Push(), so its storage is reused by the next block at the same depth. On an Apple M3, ValidateIR in tint_benchmark is 1.7% faster (geomean of 13 shaders), and GenerateMSL is 0.9% faster. Change-Id: Ic3efc829cce756db6b0c57d31cc2083a4195c0e7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/359955 Commit-Queue: Ben Clayton <headlessclayton@gmail.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Steven Perron <stevenperron@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.