Open eadwu opened 9 months ago
On master (86562e69) it is just a crash (SpirV passthrough), although passing it through wgpu::util::make_spirv
still works.
RUST_LOG=hello_compute cargo run --bin wgpu-examples hello_compute
No numbers were provided, defaulting to [1, 2, 3, 4]
zsh: segmentation fault (core dumped) RUST_LOG=hello_compute cargo run --bin wgpu-examples hello_compute
The issue is that the example is using an auto layout (one that is derived from the shader). But we currently don't support being able to derive the layout from passthrough shaders.
It should be possible to derive the layout from raw spir-v but considering we haven't gotten this feature request yet, we should at least error out early.
Description A clear and concise description of what the bug is.
Trying out SpirV passthrough just to see if it worked, but it doesn't seem to work.
What does work:
Translation to/from are handled using Naga
Repro steps Ideally, a runnable example we can check out.
cargo build && target/debug/hello-compute
on v0.18.1Expected vs observed behavior Clearly describe what you get, and how it goes across your expectations.
Expected (
wgpu::util::make_spirv(bytes)
):Observed:
Extra materials Screenshots to help explain your problem. Validation logs can be attached in case there are warnings and errors. Zip-compressed API traces and GPU captures can also land here.
Platform Information about your OS, version of
wgpu
, your tech stack, etc.