| commit | 5c9047148c568393971db488badc8fe6f2b2f93a | [log] [tgz] |
|---|---|---|
| author | Peter McNeeley <petermcneeley@google.com> | Thu Feb 13 21:11:32 2025 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 13 21:11:32 2025 -0800 |
| tree | 378cfad8538e2c80b5f8faa923989a605cc3befd | |
| parent | 91f678d65e37be5903e7f8ccc4bca54ec8192de3 [diff] |
Substitute overrides in IR (vk) This moves the substitute overrides transform in IR ie. after the program has been converted to IR. Substitute replaces all overrides with constants and propagates these values. This can result in the emission of pipeline creation errors when these constants are validated. Short circuiting expressions must be handled carefully to avoid spurious pipeline errors. We convert these to ConstExprIfs and then after evaluating overrides we throw away the branch not taken. IR Overrides doc: https://docs.google.com/document/d/1-6F1A6x3_8VX1iYqTPyIwxwO7bfI5SdEe1QEf2kqga8/edit?tab=t.0#heading=h.2pmdkrcrj8o3 Bug: 382300469 Change-Id: I0febae15e040bc25acb864cf2aee7215c124b2d6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/223994 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: 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.