commit | 128a76662848af2df627d8a33c59da2a154556e5 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Jul 12 23:45:55 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 12 23:45:55 2023 +0000 |
tree | 45f16a57677d3d93c66919973fc33658e85b0754 | |
parent | 8bd2d99ee1dd2c980522634f9c3faa304023e986 [diff] |
[ir][spirv-writer] Polyfill the `select()` builtin The argument order of OpSelect is different, and the overload that produces a vector with a scalar condition is not supported until SPIR-V 1.4. Adds a BuiltinPolyfillSpirv transform for these polyfills. Use that transform in the backend, and map the `spirv.select` intrinsic to the `OpSelect` instruction. Bug: tint:1906 Change-Id: I1d42d41ccca4a5e7af4140514afa02a12a72bf28 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/140889 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: 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 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.