Phew! After all these days of setting up the framework, I finally got a thing going on the screen!
It's also resizable, which means I had to properly setup the GLFW callback and recreate the swap chain (along with all other things connected to it) after the swap chain images were invalidated by a resize.
After creating the command buffers, I also had to create synchronization objects. With Vulkan, we could either use fences or semaphores, so I used a semaphore for image availability and render finishing. This also requires waiting if anything (like swap chains) in the system had to be changed during program running.
And with that, the image is finally presented to the screen! Let's try actual input data this time.
No comments:
Post a Comment