Here's an example of how you could use SDL with Vulkan for rendering in C#:
main.cs2637 chars81 lines
This example creates a window using SDL with the SDL_WINDOW_VULKAN
flag to enable Vulkan rendering. It then uses the Vk
library to create a Vulkan instance, device, and swapchain. Finally, it draws a triangle to the swapchain image and presents it to the window. The code should be easy to understand if you're familiar with Vulkan, but let me know if you have any questions!
gistlibby LogSnag