commit | a89d6647f696b240bfd2861d79c7dba7d856dcb5 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Fri Nov 17 22:41:32 2023 +0000 |
committer | Ben Clayton <bclayton@google.com> | Fri Nov 17 22:41:32 2023 +0000 |
tree | d16e45fd4c284bc45b0b0e348eb0856e1fcd7097 | |
parent | fb07fa9e8877d3f7934ec972a4e7bd3a44e0a78c [diff] |
[tint][ir] Refactor Instruction result methods Remove HasResults() and HasMultiResults(). These are virtual functions, and are usually followed up with another virtual call to Result() or Results(). This pattern is expensive and so should be discouraged. Add an index to Operand() and Result() to keep these accessors symmetrical. Replace the Args() virtual methods with a virtual ArgsOperandOffset(). When we split methods into const and non-const flavors, this reduces the number of duplicated methods as we can implement a const and non-const Args() in the base class. Change-Id: I7d0ecdb58746dcba90fc4631fead235474ccf1d3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/161005 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@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.