summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl.cpp
diff options
context:
space:
mode:
authorFranco M <francomaro@gmail.com>2023-10-27 00:11:15 +0200
committerGitHub <noreply@github.com>2023-10-27 00:11:15 +0200
commitb5415b687203599fe18e2cefc78700e4c6f2ae7c (patch)
treeddd4c82cab9e367cdcf2bbf4a1d444f85ed0b02e /src/shader_recompiler/backend/glsl/emit_glsl.cpp
parentMerge branch 'yuzu-emu:master' into new-shortcut (diff)
parentMerge pull request #11880 from abouvier/unbundle-stb (diff)
downloadyuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar.gz
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar.bz2
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar.lz
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar.xz
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.tar.zst
yuzu-b5415b687203599fe18e2cefc78700e4c6f2ae7c.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
index d91e04446..66ecfc9f7 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
@@ -242,6 +242,7 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
}
if (program.info.uses_subgroup_shuffles) {
ctx.header += "bool shfl_in_bounds;";
+ ctx.header += "uint shfl_result;";
}
ctx.code.insert(0, ctx.header);
ctx.code += '}';