commit | 2258155bf51be618acafd4d15f9b7e77f3c925f9 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Thu Oct 26 14:17:18 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 26 14:17:18 2023 +0000 |
tree | e9822131fbb45f25daf50c6678e7ad32399cc850 | |
parent | fcf8225612d7f2c2a065b8389a3afb03fc2d1ae8 [diff] |
[tint][spirv] Make the IR printer PIMPL This is done, so: • The API is cleaner - one stateless Print() function instead of a constructor, Generate() and Result() • The compiler / linker does a better job inlining - binary size is reduced by 2688 bytes, and gives the compiler more room for optimization. • You don't have to forward-declare or #include a bunch of implementation details in the header. • You don't have to duplicate the methods signatures in two files Change-Id: I42a1a2b55e68e4df55854119b8acc29c63a135ba Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/157240 Reviewed-by: James Price <jrprice@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.