commit | cc636969b7b7bb04043ca15673c82dc94e7fdc17 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue Jan 30 16:55:59 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 30 16:55:59 2024 +0000 |
tree | c5728dcb6536ef8c3f5116b59e8f0713260a641c | |
parent | e9eedfce2c0aa002573e238503480162c3dd7eab [diff] |
[tint][wgsl] Replace size_t with uint32_t for IDs, Source. These are used by all AST nodes, and substantially bloat the size of each and every node. Reducing the size of these substantially reduces the amount of memory held by a Program, and provides a decent performance increase due to better cache locality and fewer heap allocations. Bug: tint:2129 Change-Id: I204f4f0fa6ce68828c389132b198d6e97f5e1578 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/171802 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@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.