summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-15 22:37:19 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-15 22:37:19 +0100
commit71cc772988a71871f0183428ad139b733b9a925f (patch)
tree126f27ca501a042e9dc6d72534d9d4453982bc33 /src/video_core/renderer_vulkan
parentvk_rasterizer: Reimplement clears with vkCmdClearAttachments (diff)
downloadyuzu-71cc772988a71871f0183428ad139b733b9a925f.tar
yuzu-71cc772988a71871f0183428ad139b733b9a925f.tar.gz
yuzu-71cc772988a71871f0183428ad139b733b9a925f.tar.bz2
yuzu-71cc772988a71871f0183428ad139b733b9a925f.tar.lz
yuzu-71cc772988a71871f0183428ad139b733b9a925f.tar.xz
yuzu-71cc772988a71871f0183428ad139b733b9a925f.tar.zst
yuzu-71cc772988a71871f0183428ad139b733b9a925f.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 8c043fc09..8636967df 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -399,8 +399,8 @@ void RasterizerVulkan::Clear() {
scissor_extent.width = std::min(scissor_extent.width, render_area.width);
scissor_extent.height = std::min(scissor_extent.height, render_area.height);
- // TODO(Rodrigo): Implement layer clears
- const vk::ClearRect clear_rect({scissor_offset, scissor_extent}, 0, 1);
+ const u32 layer = regs.clear_buffers.layer;
+ const vk::ClearRect clear_rect({scissor_offset, scissor_extent}, layer, 1);
if (use_color) {
const std::array clear_color = {regs.clear_color[0], regs.clear_color[1],