commit | db03566711b20804a999d10b7f2358d99315b31f | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Wed May 19 18:29:37 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 19 18:29:37 2021 +0000 |
tree | 057f89380f1465c0b3a94d3cc565fe45db346770 | |
parent | 122e6abdd4cf2e6813147da79d6a975d5a780184 [diff] |
OpenGL: Use binding= for all bindings in generated GLSL This changes the call to SPIRV-Cross in the GLSL backend to always set the binding= decoration on interface variables instead of changing the variable name and matching against it as was done previously. This matching by name was done for macOS's OpenGL driver's old version of GL but isn't needed now that Dawn has a Metal backend for macOS. This also fixes opengl::ShaderModule to iterate only on bindings that are known to the layout as the reflection between SPIRV-Cross and Tint can be different. Bug: tint:808 Bug: tint:386 Change-Id: I308b8da5994d8618799cf6583f1b0e5ea2ba2069 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/51520 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.