mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-05 20:55:58 +00:00
Concatenating strings to use for cache keys is horribly inefficent and very error prone. Add a UnorderedKeyWrapper helper to allow types to be used as a unordered_map and unordered_set key. Use this for the type_constructor_to_id_ map. Produces SPIR-V with some duplicate SPIR-V instructions for constructors removed. Change-Id: Ib072d485ca28bb07f03e979c133cdce1f69ee482 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88300 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org>