diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-22 01:28:03 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 115c162b9afacbf36dd6c38ef06ccf71e10c336b (patch) | |
tree | 7919109bfd0d8adfd334ccfe54b6582d37235558 /src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |
parent | glsl: INeg and IAdd negate tests (diff) | |
download | yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar.gz yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar.bz2 yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar.lz yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar.xz yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.tar.zst yuzu-115c162b9afacbf36dd6c38ef06ccf71e10c336b.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 | 4 |
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 ff04cffd2..2f4ecd6a1 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,10 @@ void EmitGetCbufS16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR throw NotImplementedException("GLSL"); } -void EmitGetCbufU32(EmitContext& ctx, IR::Inst* inst, const IR::Value& binding, +void EmitGetCbufU32(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, const IR::Value& offset) { const auto u32_offset{offset.U32()}; - ctx.AddU32("{}=floatBitsToUint(cbuf{}[{}][{}]);", *inst, binding.U32(), u32_offset / 16, + ctx.AddU32("{}=floatBitsToUint(cbuf{}[{}][{}]);", inst, binding.U32(), u32_offset / 16, (u32_offset / 4) % 4); } |