commit | 6bf611d2363adb8e6ca6920eb2628d0bf4b54f3a | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu Aug 01 01:23:02 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 01 01:23:02 2024 +0000 |
tree | 8465d8adb062cc0f309f8fcfdc3bae7aea04d395 | |
parent | f228e5c81078b88d18ae173fc401bd59f9771385 [diff] |
[tint] Fix undef arg after ArrayLengthFromUniform When a function calls `arrayLength` with a user function parameter, it always expects to receive the length via another parameter. If the originating variable at the callsite is not in the bindpoint map, we do not retrieve the length from a UBO, which led to `undef` being passed as the length argument. In this scenario, the caller should just call the original `arrayLength` builtin to get the length. Fixed: 356441926 Change-Id: I458dfd848c8b4633976ab080e6fd940f1e7be992 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/200920 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org>
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.