SFML community forums

Help => Window => Topic started by: n0F4x on July 30, 2023, 04:40:15 pm

Title: Vulkan Swapchain creation fails on my GPU
Post by: n0F4x on July 30, 2023, 04:40:15 pm
Swapchain creation fails on my device (NVIDIA GTX 1060) with the surface created by the SFML window.
I tested it on my other PC (with an integrated GPU) and I also swapped the whole sf::WindowBase I was using with a GLFW implementation - both worked fine.

I got a VK_ERROR_VALIDATION_FAILED_EXT result combined with the following validation layer message: "vkCreateSwapchainKHR: internal drawable creation failed".

The source code is attached in a zip file.
Title: Re: Vulkan Swapchain creation fails on my GPU
Post by: n0F4x on July 30, 2023, 05:55:16 pm
I found the problem. I was creating my WindowBase with "new Window(...)" instead of "new WindowBase(...)".