commit | 10a45acffb5b08f4d5dab406bdfbf60c7518d289 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu Jun 05 10:07:45 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 05 10:07:45 2025 -0700 |
tree | 18d5721ca6958f3d365e0be816490b79f135826d | |
parent | 44af62c9d1ae2f6277ba1f5bc84198cce16374e3 [diff] |
[spirv-reader][ir] Make sure `position` is used. In SPIR-V, it's possible to create a `position` var, set it into the `OpEntryPoint` interface, and then never store to `position`. This will produce undefined values into the position. In IR, we _must_ reference the `position` in order for it to be considered part of the interface for the vertex shader. So, if we detect that `position` is setup in `OpEntryPoint`, but never referenced, we'll inject a store of `(0, 0, 0, 0)` into the `position` variable to satisfy the interface rules. Bug: 42250952 Change-Id: Ic37a4d6e34842bfd305dca22380df7527c469bed Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/245615 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Auto-Submit: 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.