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:
parent
7873bebaf2
commit
52fac82a45
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user