commit | 0422ee90bdb84c7fd692b48d6297b1cbe7eaf3ca | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu May 29 11:18:00 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 29 11:18:00 2025 -0700 |
tree | 5df287e7a8fad6376a2cec4f75bb4bfdf987dee8 | |
parent | 48992dba4001230029584b9dc3a26695054cdf8e [diff] |
[tint] Pass array lengths via a structure Passing the lengths buffer to all `arrayLength()` callsites and repeatedly loading the sizes can cause compile-time explosion for some backend compilers. Instead, create a structure to contain all of the lengths in the entry point and pass it down the call stack to all functions that need it. Bug: 419595583 Change-Id: I8742306a1d94155857933ce68920bfecaa2a3fcc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/244014 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: 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.