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:
parent
51c6eb5cdb
commit
4570b34456
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user