Fix Vulkan framebuffer dimensions calculations

The framebuffer needs to be large enough to contain both the render area extent and offset
This commit is contained in:
Billy Laws 2022-07-29 19:55:04 +01:00
parent 0e1aa765fc
commit 048c2fdd29

View File

@ -234,8 +234,8 @@ namespace skyline::gpu::interconnect::node {
.renderPass = renderPass,
.attachmentCount = static_cast<u32>(attachments.size()),
.pAttachments = attachments.data(),
.width = renderArea.extent.width,
.height = renderArea.extent.height,
.width = renderArea.extent.width + static_cast<u32>(renderArea.offset.x),
.height = renderArea.extent.height + static_cast<u32>(renderArea.offset.y),
.layers = 1,
},
vk::FramebufferAttachmentsCreateInfo{