Open kg opened 4 years ago
This is where the important stuff starts:
https://github.com/FNA-XNA/MojoShader/blob/upstream/profiles/mojoshader_profile_glsl.c#L258
We also need the shader binary in question.
Whoops, it’s actually its own function:
https://github.com/FNA-XNA/MojoShader/blob/upstream/profiles/mojoshader_profile_glsl.c#L1670
In some specific cases, fxc will emit the
mova
instruction, which moves a float or int value into thea0
address register (which is an integer).So the source assembly would look like:
However, right now the generated GLSL looks like this:
Should be an easy fix, just ensure that we do an explicit cast when handling
mova
.