commit | ce93a6b224f7854c52c617197cfc317fb7fb949a | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Dec 19 17:07:29 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 19 17:07:29 2022 +0000 |
tree | 4f99c8ea8f8fff7bc3020eac3988da7acc5e630e | |
parent | ada5e7b0f9de129a54667f9e28f1865623261190 [diff] |
tint: Replace type::UniqueNode::Hash() virtual with field Virtual methods are expensive to call, and hashes are frequently tested. The hash must be immutable, so just calculate it once in the constructor and store it as an immutable field. Change-Id: I9d29fb3fc074e57e7af91367768a47193baa40f1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/114780 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: 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.