summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-12-07 22:30:36 +0100
committerLioncash <mathew1800@gmail.com>2020-12-07 22:30:39 +0100
commit09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d (patch)
tree3ea0bbe356d45a250b1b5300773bc2c419a39c19 /src/video_core/renderer_vulkan
parentMerge pull request #5149 from comex/xx-map-interval (diff)
downloadyuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.gz
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.bz2
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.lz
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.xz
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.zst
yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp2
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
index f8a1bcf34..970979fa1 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -230,7 +230,7 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& renderpa
if (!attribute.enabled) {
continue;
}
- if (input_attributes.find(static_cast<u32>(index)) == input_attributes.end()) {
+ if (!input_attributes.contains(static_cast<u32>(index))) {
// Skip attributes not used by the vertex shaders.
continue;
}
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);
}