The following code does two queries to get the device properties:
|
if (extensionSupported("VK_EXT_host_image_copy")) { |
You can avoid this by providing a large-enough array size to pCopySrcLayouts and pCopyDstLayouts in the very first query. Given the current number of enums in VkImageLayout, an array of say 100 entries should be more than enough for the foreseeable future.
The following code does two queries to get the device properties:
VulkanCapsViewer/VulkanDeviceInfoExtensions.cpp
Line 363 in bb8d5e2
You can avoid this by providing a large-enough array size to
pCopySrcLayoutsandpCopyDstLayoutsin the very first query. Given the current number of enums inVkImageLayout, an array of say 100 entries should be more than enough for the foreseeable future.