1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxvk] Also initialize view formats when creating DxvkImage for existing VkImage.

This commit is contained in:
Paul Gofman 2021-08-03 00:40:19 +03:00 committed by Philip Rebohle
parent 7873bebaf2
commit 52fac82a45

View File

@ -116,6 +116,10 @@ namespace dxvk {
VkImage image)
: m_vkd(vkd), m_info(info), m_image({ image }) {
m_viewFormats.resize(info.viewFormatCount);
for (uint32_t i = 0; i < info.viewFormatCount; i++)
m_viewFormats[i] = info.viewFormats[i];
m_info.viewFormats = m_viewFormats.data();
}