commit | 4555cea9e310887a8065c4b7ff091f71ee1549d6 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Aug 26 01:11:17 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 26 01:11:17 2025 -0700 |
tree | a768f4efa3d105824a01c7cc3dcaf33c5cc4ead5 | |
parent | caeae1c1431140d3cae55fb68450dadd23699518 [diff] |
[dawn][vk] Implement dynamic array BindGroup creation. - Add a second vkUpdateDescriptorSets call in vulkan::BindGroup::InitializeImpl that populates the dynamic array part. (and split InitializeImpl in two) - Add getters in BindGroupBase to query the dynamic array information. The tracking is split in its own DynamicArrayState structure as it is expected to grow a lot and can be a separate allocation to avoid bloating BindGroup. - In BindGroupBase::Initialize, populate the DynamicArrayState with the bindings that are in the dynamic array (if any). - Add a utility method on BindGroupLayout to convert a BindingNumber to a BindingIndex that's the index in the dynamic array. - Add a few end2end tests for the creation and destruction of dynamic array BindGroups. These with the VVLs caught 4 different issues (and found one Swiftshader bug). Bug: 435317394 Change-Id: I749f0b2d6af956d7db2a37e0c2b3f9a8974c4eda Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/258077 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: Geoff Lang <geofflang@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.