commit | 93c2d559a12bf72c7eb96b6a2a5a5bb77ecdc4b4 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue Aug 23 19:09:34 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 23 19:09:34 2022 +0000 |
tree | ab202d684cd19d78fee84af2fc1de449f8d36a7d | |
parent | 18dc315ccb830b4c52dd6b0fcab47d255bd59897 [diff] |
tint/utils: Default to using Hasher instead of std::hash STL std::hash<T*> implementations have a tendency of just reinterpreting the pointer as a size_t. This is fast, but produces a bad hash, as most pointers tend to be 4 or 16 byte aligned. The lack of entropy in the LSBs causes clustering of hashmap slots. Use tint::utils::Hasher to get better hashes. Change-Id: Ife768d573cd1875e746ca9d77a4ac19e43b06aca Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99281 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
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.