mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 04:29:16 +01:00
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:
parent
0e1aa765fc
commit
048c2fdd29
@ -234,8 +234,8 @@ namespace skyline::gpu::interconnect::node {
|
|||||||
.renderPass = renderPass,
|
.renderPass = renderPass,
|
||||||
.attachmentCount = static_cast<u32>(attachments.size()),
|
.attachmentCount = static_cast<u32>(attachments.size()),
|
||||||
.pAttachments = attachments.data(),
|
.pAttachments = attachments.data(),
|
||||||
.width = renderArea.extent.width,
|
.width = renderArea.extent.width + static_cast<u32>(renderArea.offset.x),
|
||||||
.height = renderArea.extent.height,
|
.height = renderArea.extent.height + static_cast<u32>(renderArea.offset.y),
|
||||||
.layers = 1,
|
.layers = 1,
|
||||||
},
|
},
|
||||||
vk::FramebufferAttachmentsCreateInfo{
|
vk::FramebufferAttachmentsCreateInfo{
|
||||||
|
Loading…
Reference in New Issue
Block a user