-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Compute shaders produce wrong result when multiplying infinity with a number, if that number is not known at compile time.
To Reproduce
Reproducible example:
https://gist.github.com/wpmed92/c045e98fdb5916670c31383096706406
Observed behavior
The result of the repro compute shader is all zeroes, whereas it should be all infs. (positive number multiplied by positive infinity)
If I modify the shader to just pass through pos_inf, the result is correct. If I modify the multiplication to multiply inf by a const, the result is also correct. The result is only incorrect, if I multiply by a variable that is not known at compile time.
Your environment
Chip: Apple M1 Pro
OS: 14.4.1 (23E224)
Backend: Metal
Python version: Python 3.8.10
wgpu version: wgpu 0.18.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working