From 00abdfc17d2d8a192f55d1c7309273f2c079f2df Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 17 Aug 2021 10:28:45 +0200 Subject: [PATCH] tooling_info: Initialize sType/pNext in get_physical_device_tool_properties The type and next-pointer of output structures must always be initialized. Fixes: ac4d046 ("Added `VK_EXT_tooling_info` extension support (#310)") --- ash/src/extensions/ext/tooling_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ash/src/extensions/ext/tooling_info.rs b/ash/src/extensions/ext/tooling_info.rs index 563afae..284a472 100644 --- a/ash/src/extensions/ext/tooling_info.rs +++ b/ash/src/extensions/ext/tooling_info.rs @@ -30,7 +30,7 @@ impl ToolingInfo { &self, physical_device: vk::PhysicalDevice, ) -> VkResult> { - read_into_uninitialized_vector(|count, data| { + read_into_defaulted_vector(|count, data| { self.tooling_info_fn .get_physical_device_tool_properties_ext(physical_device, count, data) })