| commit | a5df8c51ea116ba5c9926725637da323f4b5d0ed | [log] [tgz] |
|---|---|---|
| author | dan sinclair <dsinclair@chromium.org> | Mon Mar 17 14:24:52 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 17 14:24:52 2025 -0700 |
| tree | 86edf593cd6ad50d2bbca3b54f6a97a81e5c1a34 | |
| parent | 43c7c10ca0b712ce3f18d5dff4a7cac4ed53d17f [diff] |
[glsl] Only apply BGRA swizzle to `in` address space. Currently the `bgra_swizzle` values are getting applied to all address spaces. This means if we have a `location(0)` in the `in` address space and a `location(0)` in the `out` address space we'll apply the BGRA swizzle to both of them. Is then can cause issues if the output address space item isn't a `vec4f` as the assignment will fail. Change the `bgra_swizzle` code to only apply to `in` address space locations. Bug: 389559096 Change-Id: I992ff2612627644c791913a65d9c6e25a9aa8a34 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/231494 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.