Skip to content

Commit

Permalink
Set VkExternalBufferProperties->sType and pNext
Browse files Browse the repository at this point in the history
  • Loading branch information
Beanavil committed Nov 12, 2024
1 parent 706e861 commit 2cdeb65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion samples/extensions/khr/externalmemory/vulkan_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion samples/extensions/khr/externalmemory/vulkan_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2cdeb65

Please sign in to comment.