commit | 7e8df044c6506297cc830f3b34c6bd391c8791e5 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Thu Apr 28 18:40:03 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 28 18:40:03 2022 +0000 |
tree | da1521522918cce6d2c0b3f5feb1d8b9814f9005 | |
parent | b0b53ba4038d2b20e05011d350f1f3fea2be358d [diff] |
tint/writer/spirv: Replace Operand with std::variant Operand is just a tagged union of uint32_t, float and std::string. Use std::variant for this. Reduces memory size, and removes the need to always construct an empty string when the operand is float or int. Bug: tint:1383 Change-Id: I02fc10137d6fab410ea25a8d6c6e279b882b2287 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88302 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.