Use vkCmdBlit for texture copies when formats dont match

This commit is contained in:
Billy Laws
2022-11-06 20:31:23 +00:00
parent c8fc8f84ec
commit ac0e225114
3 changed files with 28 additions and 8 deletions

View File

@ -139,7 +139,7 @@ namespace skyline::gpu {
auto &presentSemaphore{presentSemaphores[nextImage.second]};
texture->SynchronizeHost();
nextImageTexture->CopyFrom(texture, *acquireSemaphore, *presentSemaphore, vk::ImageSubresourceRange{
nextImageTexture->CopyFrom(texture, *acquireSemaphore, *presentSemaphore, swapchainFormat, vk::ImageSubresourceRange{
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.layerCount = 1,