Vulkan/Texture: Fix incorrect upload image layout

This commit is contained in:
Stenzek
2023-02-05 13:03:10 +10:00
parent 2dd374d2a7
commit 1371dcfa4a
4 changed files with 14 additions and 6 deletions

View File

@ -715,7 +715,8 @@ bool SwapChain::SetupSwapChainImages()
// Create texture object, which creates a view of the backbuffer
if (!image.texture.Adopt(image.image, VK_IMAGE_VIEW_TYPE_2D, m_window_info.surface_width,
m_window_info.surface_height, 1, 1, m_surface_format.format, VK_SAMPLE_COUNT_1_BIT))
m_window_info.surface_height, 1, 1, m_surface_format.format, VK_SAMPLE_COUNT_1_BIT,
VK_IMAGE_LAYOUT_UNDEFINED))
{
return false;
}