commit | 05c6fd3a29790612b9667e4e21e6f401819e78a2 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Fri Jul 14 16:27:55 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 14 16:27:55 2023 +0000 |
tree | 8c74d55dca9e4cd0ec97fb27b523ad137b2f846b | |
parent | f7386737af831594412c56decfc76ada1163abb6 [diff] |
[ir][spirv-writer] Handle texture sample builtins Use the BuiltinPolyfillSpirv transform to replace texture sample builtins with calls to SPIR-V intrinsic functions that will create the `OpSampledImage` and then execute an `OpImageSample*` instruction. A `LiteralOperand` subclass of `ir::Constant` is used to represent the literal 'image operands' operand, and a `SampledImage` subclass of `type::Type` is used to represent the `OpSampledImage` type. Bug: tint:1906 Change-Id: Id3fd166f1cf5772fd75aed5cbeb8c3c02ea65197 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/141230 Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: James Price <jrprice@google.com> Commit-Queue: James Price <jrprice@google.com> 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.