You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewriting the for loop as a loop with break, or while loop doesn't fix the issue. Similarly doing a single iteration without a loop works fine, so the loop itself seems to be the issue when using spirt
eddyb
changed the title
For loop causes runtime panic
For loop not supported by Naga
Apr 15, 2023
This is 100% a Naga bug (they're not implementing a legal form of SPIR-V control-flow) and will be fixed independently of Rust-GPU.
eddyb
added
t: external
Issues not about rust-gpu itself, but related enough to be tracked.
and removed
t: bug
Something isn't working
labels
Apr 15, 2023
Expected Behaviour
Disabling spirt should not fix runtime errors.
Example & Steps To Reproduce
Compiling the following:
Causes a panic at runtime in the naga crate:
Adding the
--no-spirt
compile arg fixes this issue.This issue upstream seems relevant: gfx-rs/wgpu#4388
System Info
The text was updated successfully, but these errors were encountered: