[dawn][native] Remove BGL::GetBindingIndex(BindingNumber) BindingNumbers only make sense to convert to APIBindingIndex since that's the integer type used to represent packed bindings that match user-facing bindings. One use of GetBindingIndex in the GL backend is only for sampled textures and can be replaced with AsBindingIndex(GetAPIBindingIndex). The other use of GetBindingIndex was in the Vulkan backend to convert the BindingNumber in StaticSamplerBindingInfo::sampledTextureBinding to a BindingIndex. In this CL that member is replaced with a BindingIndex in the same BGL, which requires updating the StaticSamplerBindingInfo after the reordering of bindings in the BGL creation, and updates to the BindGroup validation code. Bug: 42240282 Change-Id: I0eabaabcea69f3aeae18753c160890af1419b663 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/264035 Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Corentin Wallez <cwallez@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.