Fix texture copy into staging one on DX12 and Vulkan

This commit is contained in:
Wojtek Figat
2024-05-28 14:56:38 +02:00
parent 8a2acd360d
commit 5f4c57d3eb
3 changed files with 90 additions and 38 deletions

View File

@@ -235,6 +235,7 @@ bool GPUTextureVulkan::OnInit()
return true;
}
_memoryUsage = 1;
initResource(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, _desc.MipLevels, _desc.ArraySize, false);
return false;
}