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)")
This commit is contained in:
Marijn Suijten 2021-08-17 10:28:45 +02:00 committed by Benjamin Saunders
parent 6fa57a4269
commit 00abdfc17d

View file

@ -30,7 +30,7 @@ impl ToolingInfo {
&self, &self,
physical_device: vk::PhysicalDevice, physical_device: vk::PhysicalDevice,
) -> VkResult<Vec<vk::PhysicalDeviceToolPropertiesEXT>> { ) -> VkResult<Vec<vk::PhysicalDeviceToolPropertiesEXT>> {
read_into_uninitialized_vector(|count, data| { read_into_defaulted_vector(|count, data| {
self.tooling_info_fn self.tooling_info_fn
.get_physical_device_tool_properties_ext(physical_device, count, data) .get_physical_device_tool_properties_ext(physical_device, count, data)
}) })