diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-22 07:52:03 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 5e9095ef2203e7cddcaba84fa3b01cc0d940b634 (patch) | |
tree | 3ecb46dfb2a04ed269ccb07eb85cfa7c8e44a99d /src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | |
parent | glsl: Fixup build issues (diff) | |
download | yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.gz yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.bz2 yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.lz yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.xz yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.zst yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp index 2344fd2a9..7c8c23050 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp @@ -76,18 +76,15 @@ void EmitWriteStorageS16([[maybe_unused]] EmitContext& ctx, throw NotImplementedException("GLSL Instrucion"); } -void EmitWriteStorage32([[maybe_unused]] EmitContext& ctx, - [[maybe_unused]] const IR::Value& binding, - [[maybe_unused]] const IR::Value& offset, - [[maybe_unused]] std::string_view value) { +void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, + std::string_view value) { ctx.Add("buff{}[{}]={};", binding.U32(), offset.U32(), value); } -void EmitWriteStorage64([[maybe_unused]] EmitContext& ctx, - [[maybe_unused]] const IR::Value& binding, - [[maybe_unused]] const IR::Value& offset, - [[maybe_unused]] std::string_view value) { - throw NotImplementedException("GLSL Instrucion"); +void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, + std::string_view value) { + ctx.Add("buff{}[{}]={}.x;", binding.U32(), offset.U32(), value); + ctx.Add("buff{}[{}]={}.y;", binding.U32(), offset.U32() + 1, value); } void EmitWriteStorage128([[maybe_unused]] EmitContext& ctx, |