I could successfully run the sample GitHub - nvpro-samples/gl_render_vk_ddisplay: OpenGL sample that renders into a Vulkan direct display with one display. However, I am unable to create more than one Vulkan swapchain using Direct Display.
I have three display outputs. All of them are removed from Windows as described. Then I trivially modified the VkDirectDisplay class to create three display surfaces and three Vulkan swapchains instead of one. When the second swapchain gets created, I could observe one of the following behaviour:
- vkCreateSwapchainKHR is successful, but the previous output connection is immediately lost.
- The driver crashes during vkCreateSwapchainKHR.
- vkCreateSwapchainKHR returns with VK_ERROR_INITIALIZATION_FAILED.
Is there a way to create multiple swapchains using Direct Display - was anybody able to do this?
Thanks!