Skip to content

Learning how to write a Vulkan render pipeline #601

Answered by Perksey
jasonswearingen asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend following a tutorial like vkguide - these are written in C but they port over to Silk.NET pretty nicely.

The only things Silk.NET do differently are Windowing, Input, Loading, and Extensions.

Windowing

Use the OpenGL Hello Window example as a base for this. You will have to change WindowOptions.Default to WindowOptions.DefaultVulkan to enable Vulkan support. In the Window’s Load callback, you can query the instance extensions you need and create a surface using the APIs accessed via window.VkSurface.

Input

This is also demonstrated in the OpenGL Hello Window example.

Loading

In Silk.NET, all native functions are accessed through an “API object”. For Vulkan, you can create this…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jasonswearingen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants