gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.67k stars 926 forks source link

Gaps in binding group indices #1489

Open FredrikNoren opened 3 years ago

FredrikNoren commented 3 years ago

Description If I specify binding groups in wgsl (using reflection, no layout), I can specify for instance group 0 and 2 (and skip 1), but when I try to bind that in the application I get an error.

Repro steps https://github.com/FredrikNoren/wgpu/tree/gap-bug/wgpu/examples/hello-triangle

Expected vs observed behavior I'm getting the following error in the example: current render pipeline has a layout which is incompatible with a currently set bind group, first differing at entry index 0.

Platform OSX

(@kvark requested that I filed this issue)

jinleili commented 1 year ago

In the WebGPU standard, it is marked as Milestone 2.