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

[dxvk] Use small_vector to store image view format compatibility list

Avoids some memory allocations, but increases the object size slightly.
This commit is contained in:
Philip Rebohle 2020-01-08 15:16:43 +01:00 committed by Philip Rebohle
parent 70e52aa6f2
commit 8770a14743
2 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,7 @@ namespace dxvk {
DxvkMemory m_memory;
VkImage m_image = VK_NULL_HANDLE;
std::vector<VkFormat> m_viewFormats;
small_vector<VkFormat, 4> m_viewFormats;
};

View File

@ -8,6 +8,7 @@
#include "../util/util_flags.h"
#include "../util/util_likely.h"
#include "../util/util_math.h"
#include "../util/util_small_vector.h"
#include "../util/util_string.h"
#include "../util/rc/util_rc.h"