Account for layerCount in SynchronizeGuestWithBuffer staging buffer size
This commit is contained in:
parent
5b97b87503
commit
1609fd2a32
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ namespace skyline::gpu {
|
|||
WaitOnFence();
|
||||
|
||||
if (tiling == vk::ImageTiling::eOptimal || !std::holds_alternative<memory::Image>(backing)) {
|
||||
auto size{format->GetSize(dimensions)};
|
||||
auto size{format->GetSize(dimensions) * layerCount};
|
||||
auto stagingBuffer{gpu.memory.AllocateStagingBuffer(size)};
|
||||
|
||||
CopyIntoStagingBuffer(commandBuffer, stagingBuffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue