commit | 5e0ec474044a9937d7396a802185137a8f80f548 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Wed Apr 09 19:06:32 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 09 19:06:32 2025 -0700 |
tree | 9d1d48bb043b1395552bf1000cb1e54b71b0b949 | |
parent | f5648a304d1bd70ac075439fc02e492b18b4db03 [diff] |
[spirv-writer] Store SPIR-V instructions into blocks. Currently the SPIR-V writer creates a list of instructions for a function, those lists contain multiple SPIR-V blocks just appended together. Instead, create a list of blocks, the blocks store instructions. Then as blocks are emitted from the Tint IR they create Blocks in the SPIR-V writer. This will allow us to refer to those SPIR-V blocks later. Bug: 409346479 Change-Id: Iaecef8f4293426af722ec45946aa1274a693864b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/235695 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@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.