1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Add initial layout to image create info

This commit is contained in:
Philip Rebohle 2019-09-19 18:21:16 +02:00
parent 51c6eb5cdb
commit 4570b34456
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace dxvk {
info.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
info.queueFamilyIndexCount = 0;
info.pQueueFamilyIndices = nullptr;
info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
info.initialLayout = createInfo.initialLayout;
if (m_vkd->vkCreateImage(m_vkd->device(),
&info, nullptr, &m_image) != VK_SUCCESS) {

View File

@ -52,6 +52,9 @@ namespace dxvk {
/// Common image layout
VkImageLayout layout;
// Initial image layout
VkImageLayout initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
// Image view formats that can
// be used with this image
uint32_t viewFormatCount = 0;