mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
`create_bind_group` populates the `BindGroup::dynamic_binding_info` field in the order the user specified. This later gets consumed by validation in passes and bundles `BindGroup::validate_dynamic_bindings`, in which `dynamic_binding_info` is assumed to be sorted in binding order. Eek! We're validating the wrong dynamic binding bounds! Fix this by sorting `dynamic_binding_info` before it gets put into a `BindGroup`. Document the field with the invariant that it _must_ be sorted according to binding index order.