diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-10 09:11:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 09:11:11 +0100 |
commit | d1a2b3fb18c6711d02b786616a23bb1becf04cb5 (patch) | |
tree | 162c7af75b25543a511d6a521575d34eaecd749c /src | |
parent | Merge pull request #5179 from ReinUsesLisp/fs-path (diff) | |
parent | gl_shader_decompiler: Elide unnecessary copies within DeclareConstantBuffers() (diff) | |
download | yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar.gz yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar.bz2 yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar.lz yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar.xz yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.tar.zst yuzu-d1a2b3fb18c6711d02b786616a23bb1becf04cb5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 0c97a8988..ccbdfe967 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -878,7 +878,7 @@ private: } u32 binding = device.GetBaseBindings(stage).uniform_buffer; - for (const auto [index, info] : ir.GetConstantBuffers()) { + for (const auto& [index, info] : ir.GetConstantBuffers()) { const u32 num_elements = Common::AlignUp(info.GetSize(), 4) / 4; const u32 size = info.IsIndirect() ? MAX_CONSTBUFFER_ELEMENTS : num_elements; code.AddLine("layout (std140, binding = {}) uniform {} {{", binding++, |