From 2cdeb65583f6d1d13ff0aceb5dac76abc03ba52d Mon Sep 17 00:00:00 2001 From: Beatriz Navidad Vilches Date: Wed, 6 Nov 2024 22:52:16 +0000 Subject: [PATCH] Set VkExternalBufferProperties->sType and pNext --- samples/extensions/khr/externalmemory/vulkan_utils.h | 4 +++- samples/extensions/khr/externalmemory/vulkan_utils.hpp | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/samples/extensions/khr/externalmemory/vulkan_utils.h b/samples/extensions/khr/externalmemory/vulkan_utils.h index b8b91d24..ff6730e0 100644 --- a/samples/extensions/khr/externalmemory/vulkan_utils.h +++ b/samples/extensions/khr/externalmemory/vulkan_utils.h @@ -363,7 +363,9 @@ bool vk_check_external_memory_handle_type( physical_device_external_buffer_info.handleType = vk_external_memory_handle_type; - VkExternalBufferProperties external_buffer_properties; + VkExternalBufferProperties external_buffer_properties = { + VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES, NULL + }; vkGetPhysicalDeviceExternalBufferProperties( vk_physical_device, &physical_device_external_buffer_info, diff --git a/samples/extensions/khr/externalmemory/vulkan_utils.hpp b/samples/extensions/khr/externalmemory/vulkan_utils.hpp index 82c5c1c0..ac110193 100644 --- a/samples/extensions/khr/externalmemory/vulkan_utils.hpp +++ b/samples/extensions/khr/externalmemory/vulkan_utils.hpp @@ -239,7 +239,10 @@ bool vk_check_external_memory_handle_type( physical_device_external_buffer_info.handleType = vk_external_memory_handle_type; - VkExternalBufferProperties external_buffer_properties; + VkExternalBufferProperties external_buffer_properties = {}; + external_buffer_properties.sType = + VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES; + external_buffer_properties.pNext = nullptr; vkGetPhysicalDeviceExternalBufferProperties( vk_physical_device, &physical_device_external_buffer_info,