summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-29 07:17:30 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-09-29 07:26:01 +0200
commite29f3b87f1921918dc62306d1de2d3ce4b4bf35b (patch)
treea6a48a725aab1b4c501beb131ccbd532ff37bdc3 /src/shader_recompiler/backend
parentMerge pull request #7018 from lat9nq/splat-stubs (diff)
downloadyuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar.gz
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar.bz2
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar.lz
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar.xz
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.tar.zst
yuzu-e29f3b87f1921918dc62306d1de2d3ce4b4bf35b.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp
index 580063fa9..170db269a 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp
@@ -58,8 +58,8 @@ void GetCbuf(EmitContext& ctx, std::string_view ret, const IR::Value& binding,
const auto cbuf{fmt::format("{}_cbuf{}", ctx.stage_name, binding.U32())};
const auto cbuf_cast{fmt::format("{}({}[{}]{{}})", cast, cbuf, index)};
const auto extraction{num_bits == 32 ? cbuf_cast
- : fmt ::format("bitfieldExtract({},int({}),{})", cbuf_cast,
- bit_offset, num_bits)};
+ : fmt::format("bitfieldExtract({},int({}),{})", cbuf_cast,
+ bit_offset, num_bits)};
if (!component_indexing_bug) {
const auto result{fmt::format(fmt::runtime(extraction), swizzle)};
ctx.Add("{}={};", ret, result);