commit | 8eae7c09ab83155ed3114dc1cfaba5b939517b7b | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Dec 13 21:35:15 2023 +0000 |
committer | James Price <jrprice@google.com> | Wed Dec 13 21:35:15 2023 +0000 |
tree | e0a5c1eed58b3575206fcaa4dbd13021fc8035f9 | |
parent | d0dadce62bd0c397373fab0fa5e2dead57b580c6 [diff] |
[spirv-reader] Start emitting functions Build the SPIR-V tools IR context, which gives us a lot of information about the SPIR-V module. Add helper functions to emit Tint types from SPIR-V types and result IDs. Currently only supports the void type. Emit a function with its return type, and emit the contents of its entry block. Currently only supports the OpReturn instruction. Adds a basic test framework for parsing SPIR-V assembly and comparing the result to an IR disassembly. Bug: tint:1907 Change-Id: I4eb7441e9459320af11c883ed85aaa3d470b3a64 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/165540 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@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.