From 048c2fdd297301eede0ad4ac85b7aa8a4d4b9d75 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 29 Jul 2022 19:55:04 +0100 Subject: [PATCH] Fix Vulkan framebuffer dimensions calculations The framebuffer needs to be large enough to contain both the render area extent and offset --- app/src/main/cpp/skyline/gpu/interconnect/command_nodes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/command_nodes.cpp b/app/src/main/cpp/skyline/gpu/interconnect/command_nodes.cpp index ee914916..93018375 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/command_nodes.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/command_nodes.cpp @@ -234,8 +234,8 @@ namespace skyline::gpu::interconnect::node { .renderPass = renderPass, .attachmentCount = static_cast(attachments.size()), .pAttachments = attachments.data(), - .width = renderArea.extent.width, - .height = renderArea.extent.height, + .width = renderArea.extent.width + static_cast(renderArea.offset.x), + .height = renderArea.extent.height + static_cast(renderArea.offset.y), .layers = 1, }, vk::FramebufferAttachmentsCreateInfo{