diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-16 00:14:52 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-16 00:14:55 +0200 |
commit | 9760795bfb854733c4696fa9e7e04f788ea489a7 (patch) | |
tree | 1bd94a4c23a6a0c2e3546f12f2941e8035c4a817 /src/video_core | |
parent | Merge pull request #2977 from lioncash/algorithm (diff) | |
download | yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar.gz yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar.bz2 yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar.lz yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar.xz yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.tar.zst yuzu-9760795bfb854733c4696fa9e7e04f788ea489a7.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 6a610a3bc..3bd3d2244 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1235,7 +1235,7 @@ private: std::string BuildImageValues(Operation operation) { constexpr std::array constructors{"uint", "uvec2", "uvec3", "uvec4"}; - const auto meta{std::get<MetaImage>(operation.GetMeta())}; + const auto& meta{std::get<MetaImage>(operation.GetMeta())}; const std::size_t values_count{meta.values.size()}; std::string expr = fmt::format("{}(", constructors.at(values_count - 1)); @@ -1780,14 +1780,14 @@ private: return {"0", Type::Int}; } - const auto meta{std::get<MetaImage>(operation.GetMeta())}; + const auto& meta{std::get<MetaImage>(operation.GetMeta())}; return {fmt::format("imageLoad({}, {}){}", GetImage(meta.image), BuildIntegerCoordinates(operation), GetSwizzle(meta.element)), Type::Uint}; } Expression ImageStore(Operation operation) { - const auto meta{std::get<MetaImage>(operation.GetMeta())}; + const auto& meta{std::get<MetaImage>(operation.GetMeta())}; code.AddLine("imageStore({}, {}, {});", GetImage(meta.image), BuildIntegerCoordinates(operation), BuildImageValues(operation)); return {}; @@ -1795,7 +1795,7 @@ private: template <const std::string_view& opname> Expression AtomicImage(Operation operation) { - const auto meta{std::get<MetaImage>(operation.GetMeta())}; + const auto& meta{std::get<MetaImage>(operation.GetMeta())}; ASSERT(meta.values.size() == 1); return {fmt::format("imageAtomic{}({}, {}, {})", opname, GetImage(meta.image), |