diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-30 22:17:27 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-10 03:52:28 +0100 |
commit | 0b5b93053d5f427c668a2494c52adfd468cf5728 (patch) | |
tree | b850d080dce2c8f1c496c03a995b033fb2e4fad3 /src/video_core/renderer_opengl | |
parent | vk_shader_decompiler: Misc changes (diff) | |
download | yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar.gz yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar.bz2 yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar.lz yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar.xz yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.tar.zst yuzu-0b5b93053d5f427c668a2494c52adfd468cf5728.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 3d3cd21f3..9700c2ebe 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1915,6 +1915,10 @@ private: return {}; } + Expression InvocationId(Operation operation) { + return {"gl_InvocationID", Type::Int}; + } + Expression YNegate(Operation operation) { return {"y_direction", Type::Float}; } @@ -2153,6 +2157,7 @@ private: &GLSLDecompiler::EmitVertex, &GLSLDecompiler::EndPrimitive, + &GLSLDecompiler::InvocationId, &GLSLDecompiler::YNegate, &GLSLDecompiler::LocalInvocationId<0>, &GLSLDecompiler::LocalInvocationId<1>, |