Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will vulkan api handle window creation?

I have heared vulkan will unify the initialisation on different operating systems. Does that mean vulkan creates the window, handles mouse/keyboard events so I can avoid using os specific programming?

like image 897
oel_runs_the_world Avatar asked Dec 04 '22 01:12

oel_runs_the_world


1 Answers

It won't. Window creation will be platform specific and an WSI extension will let you link the window to a renderable Image that you can push to the screen.

From information gleaned out of the presentations that have been given I expect that you will use a platform specific WSI Extension to create a Swapchain for your window.

Then each time you wish to push a frame to the screen you need to acquire a presentable image from the swapchain; render to it and then present it.

see this slide pack from slide 109 onward.

like image 120
ratchet freak Avatar answered Mar 15 '23 13:03

ratchet freak