Open JMS55 opened 3 months ago
This might be a weird renderdoc bug, not sure. I'd like confirmation though that u32(negative_float) is always 0, or if that's not what the spec is saying.
u32(negative_float)
should be 0
. But why do the repro steps contain ConvertFToU(_395)
? that should be u32(_395)
.
This might be a weird renderdoc bug, not sure.
It would be worth investigating.
FYI this is naga's spirv output from a wgsl shader.
Description Using renderdoc, the conversion from f32 to u32 seems wrong in my shader.
Repro steps
Expected vs observed behavior I think the result should be 0u. It's not even u32::MAX, so something's weird.
Extra materials https://gpuweb.github.io/gpuweb/wgsl/#floating-point-conversion
Platform
wgpu 0.21