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:
parent
70e52aa6f2
commit
8770a14743
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user