summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-08-24 17:29:19 -0300
committerGravatar ReinUsesLisp2019-09-04 01:54:00 -0300
commit6c449793b8a12cb4460d8c16d6a5a5d4d8595edf (patch)
tree593cc7c3cfcd719216630b19af71ebea6d6d74b6 /src/common/file_util.cpp
parentMerge pull request #2835 from chris062689/master (diff)
downloadyuzu-6c449793b8a12cb4460d8c16d6a5a5d4d8595edf.tar.gz
yuzu-6c449793b8a12cb4460d8c16d6a5a5d4d8595edf.tar.xz
yuzu-6c449793b8a12cb4460d8c16d6a5a5d4d8595edf.zip
gl_shader_decompiler: Rework GLSL decompiler type system
GLSL decompiler type system was broken. We converted all return values to float except for some cases where returning we couldn't and implicitly broke the rule of returning floats (e.g. for bools or bool pairs). Instead of doing this introduce class Expression that knows what type a return value has and when a consumer wants to use the string it asks for it with a required type, emitting a runtime error if types are incompatible. This has the disadvantage that there's more C++ code, but we can emit better GLSL code that's easier to read.
Diffstat (limited to 'src/common/file_util.cpp')
0 files changed, 0 insertions, 0 deletions