Skip to content

[wgpu-hal] With shader passthrough use given "binding" indices in Vulkan instead of incrementing from 0 #9326

Description

@dylanblokhuis

Is your feature request related to a problem? Please describe.
When using SPIR-V passthrough it can be very confusing when creating bind group layouts that the binding indices you pass in with BindGroupLayoutEntry, won't be the same internally in Vulkan, causing mismatches.

Describe the solution you'd like
Whenever the pipeline layout is given explicitly, use the given binding indices instead of using next_binding

Describe alternatives you've considered
Rewriting the SPIRV words to match the actual bindings created by wgpu, which isn't ideal.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions