From 2744de9936755fea6912d47e7a0a8857d8a4fdee Mon Sep 17 00:00:00 2001 From: ziga-lunarg Date: Fri, 6 Dec 2024 16:34:39 +0200 Subject: vulkaninfo: Fix initializing vectors of structs --- vulkaninfo/vulkaninfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index f3eb43e2..88d9a634 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -239,7 +239,7 @@ auto GetVectorInit(const char *func_name, F &&f, T init, Ts &&...ts) -> std::vec uint32_t max_iterations = 5; do { count *= 2; - results.resize(count); + results.resize(count, init); err = f(ts..., &count, results.data()); results.resize(count); iteration_count++; -- cgit v1.2.3