diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-12-08 01:55:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 01:55:51 +0100 |
commit | 3415890dd5c6539a7c7b6e02bf7ce5df4533133c (patch) | |
tree | d8293d5f1997e2b59d79d5bfcc629b736565ac13 /src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |
parent | Merge pull request #5163 from lioncash/concat (diff) | |
parent | video_core: Make use of ordered container contains() where applicable (diff) | |
download | yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.gz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.bz2 yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.lz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.xz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.zst yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_shader_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 5748eab3a..ca12b3793 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -2125,8 +2125,7 @@ private: OpStore(z_pointer, depth); } if (stage == ShaderType::Fragment) { - const auto SafeGetRegister = [&](u32 reg) { - // TODO(Rodrigo): Replace with contains once C++20 releases + const auto SafeGetRegister = [this](u32 reg) { if (const auto it = registers.find(reg); it != registers.end()) { return OpLoad(t_float, it->second); } |