SDL2 and Vulkan


Can you please tell me, can I use SDL2 to display Vuklan?

It says here that: Simple DirectMedia Layer - Homepage

…and graphics hardware via OpenGL and Direct3D.

SDL’s hardware-accelerated 2D renderer, SDL_Renderer, doesn’t have a Vulkan backend.

However, you can totally use SDL to create a window that you then render to using your own Vulkan rendering code, and SDL has functions to help load your system’s Vulkan driver etc

1 Like