Implement WGSL division by zero semantics #4385
Labels
area: naga back-end
Outputs of naga shader conversion
lang: GLSL
OpenGL Shading Language
lang: HLSL
D3D Shading Language
lang: Metal
Metal Shading Language
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: bug
Something isn't working
Milestone
I've found what seems to be another hlsl compilation failure caused by FXC. This one incorrectly reports a divide by zero error. Interestingly it's only rejected when the
divide
call is in a nested loop.Output:
Tint seems to be able to satisfy FXC by adding an extra check on
b
in thedivide
function: https://shader-playground.timjones.io/ac86c91d9f0f9b09c7668fa99534fe3f.The text was updated successfully, but these errors were encountered: