You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function vkGetPhysicalDeviceSurfaceCapabilities2KHR can be extended by use of VkSurfaceCapabilitiesKHR.pNext, however the current wrapper get_physical_device_surface_capabilities2 doesn't allow this since it creates and returns the struct vk::SurfaceCapabilities2KHR.
To allow the use of the pNext pointer, the function get_physical_device_surface_capabilities2 should be changed from this:
We've had discussions about how to best pass these types in the past and fixed most functions to allow this (e.g. #588), but it seems like it was forgotten about when this extension was originally wrapped in #530. Especially considering that VkSurfaceCapabilities2KHR exists solely to represent VkSurfaceCapabilitiesKHR but with sType and pNext fields 😅.
The function
vkGetPhysicalDeviceSurfaceCapabilities2KHR
can be extended by use ofVkSurfaceCapabilitiesKHR.pNext
, however the current wrapperget_physical_device_surface_capabilities2
doesn't allow this since it creates and returns the structvk::SurfaceCapabilities2KHR
.To allow the use of the
pNext
pointer, the functionget_physical_device_surface_capabilities2
should be changed from this:To something like this:
The text was updated successfully, but these errors were encountered: