aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_vulkan_wrapper.py
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2023-09-12 16:18:02 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-09-12 17:06:33 -0600
commita01cfc0b78dc7a2d14913b33b53a7420fabd73a3 (patch)
treee74acfc263514282cf32000a3558d0b63d50067b /scripts/generate_vulkan_wrapper.py
parent45095e1b094ae45d4437ad516aaffbb499882d18 (diff)
downloadusermoji-a01cfc0b78dc7a2d14913b33b53a7420fabd73a3.tar.xz
vulkaninfo: Support VK_EXT_surface_maintenance1 properly
The struct VkSurfacePresentModeCompatibilityEXT and VkSurfacePresentScalingCapabilitiesEXT can only be included in the VkSurfaceCapabilities2KHR pNext chain if a VkSurfacePresentModeEXT struct is in the pNext chain for VkPhysicalDeviceSurfaceInfo2KHR. In other words, the autogen for this extension is not adequate and needs to be special cased. This is doubly true because the aformentioned structs are 'per-present-mode' so the output needs to handle printing each struct once per present mode available, which is not possible with autogenerated code currently. The easiest solution is to just remove the surface_maintenance1 structs from autogen in the pNext chain (but keep the autogenerated printing functions). Then setup the pNext chains appropriate and make the necessary calls, before printing the data directly.
Diffstat (limited to 'scripts/generate_vulkan_wrapper.py')
0 files changed, 0 insertions, 0 deletions