Handle differences between the glsl mod
function and the metal::fmod
function.
#802
Labels
area: back-end
Outputs of shader conversion
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Utgh.
When using
spirv-cross
on a spir-v file that usesOpFMod
, it emits the following metal function:Currently we emit
metal::fmod
forOpFMod
functions. This results in some glitches in shaders. For example, the shadertoy shader https://www.shadertoy.com/view/XsXXDn looks like this withspirv-cross
(using repi/shadertoy-browser#63):But like this with naga:
The text was updated successfully, but these errors were encountered: