commit | f6398145fbde5d7366a7bf525b1d3c522c8b0159 | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Fri Feb 09 21:20:00 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 09 21:20:00 2024 +0000 |
tree | a3da9f41834cdeec3ccd04cc1ca41515f504bd40 | |
parent | 0d6b9d11ac4ba0d8aa7fc814189052635fa69a3d [diff] |
Implement a push constant helper class. This helper will find an existing push_constant variable in the AST, and append new struct members to it. Otherwise it will create a new push_constant block. Members are sorted by offset, and can be inserted in any order. However, members with duplicate offsets will cause a diagnostic error. Much of this logic was factored out of the OffsetFirstIndex transform, which now uses the helper. Bug: dawn:2185 Change-Id: I8d3e5f28f0862673228d34e686571bf1feed2490 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/174120 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@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.