Reduce some copies in serialization

Also update a bunch of stuff
This commit is contained in:
Patrick Nicolas
2023-11-22 00:00:55 +01:00
parent c799fa6aa4
commit 8b0895913b
22 changed files with 805 additions and 820 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ namespace vk::details
template <typename T>
struct structure_traits_base
{
static constexpr inline VkStructureType type = static_cast<VkStructureType>(-1);
static constexpr inline VkStructureType type = VK_STRUCTURE_TYPE_MAX_ENUM;
using base = T;
};
@@ -53,7 +53,7 @@ auto enumerate(F f, Args &&... args) -> auto
if (result >= 0)
{
if constexpr (structure_type<T> == static_cast<VkStructureType>(-1))
if constexpr (structure_type<T> == VK_STRUCTURE_TYPE_MAX_ENUM)
{
array.resize(count);
}