I can't get the VK_KHR_Display display count


I am trying to add Vulkan support to SDL2 outside X, using the VK_KHR_Display extension.

I have this extension active, and as such I can retrieve the pointer to vkCreateDisplayPlaneSurfaceKHR(), using vkGetInstanceProcAddr() on the program’s instance.

However, when I try to get the display count using vkGetPhysicalDeviceDisplayPropertiesKHR(), I get 0 displays. Any idea on what am I doing wrong?

Here’s where I successfully retrieve the vkCreateDisplayPlaneSurfaceKHR() pointer:

And here is where I try to retrieve the display count that results in 0 displays:

I am trying this on AMDGPU and intel graphics with the same result.
Any idea on what am I doing wrong?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.