diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-21 05:38:38 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 64337f004d9249c4408fec75bd1bbcc0f2a1408d (patch) | |
tree | 401c988bd203d3b69f005640d31b154702888c6c /src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |
parent | glsl: Initial backend (diff) | |
download | yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar.gz yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar.bz2 yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar.lz yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar.xz yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.tar.zst yuzu-64337f004d9249c4408fec75bd1bbcc0f2a1408d.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | 7 |
1 files changed, 3 insertions, 4 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 7b2ed358e..e45dfa42e 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 @@ -30,10 +30,9 @@ void EmitGetCbufS16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR throw NotImplementedException("GLSL"); } -void EmitGetCbufU32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, - [[maybe_unused]] const IR::Value& offset) { - const auto var{ctx.AllocVar()}; - ctx.Add("uint {} = c{}[{}];", var, binding.U32(), offset.U32()); +void EmitGetCbufU32(EmitContext& ctx, IR::Inst* inst, const IR::Value& binding, + const IR::Value& offset) { + ctx.Add("uint {}=cbuf{}[{}];", *inst, binding.U32(), offset.U32()); } void EmitGetCbufF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, |