commit | dff17077103b2d209d5c7cb529f3501eef84c124 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon May 27 22:01:03 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon May 27 22:01:03 2024 +0000 |
tree | 70c11c78ed2375a98477a4834993bda586c44aa7 | |
parent | cad9b2dbed6ed4caf771819ccf552bc88d359e3c [diff] |
[tint][ir] Use Operand() instead of indexing operands_ directly Operand() will return nullptr if the index is OOBs. This can be used by the validator and disassembler to highlight unexpected null operands. Given that we assert the index is in bounds, the compiler should be able to elide the assert and end up with something very similar in terms of performance. Change-Id: Iba408ae7a3cf37f4e8711d37ddffa3f88ef4b649 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/189709 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
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.