In this part, I used the previous created semaphores and fences to coordinate rendering and presentation. I also implement resizing of the window.
This part follows along with Drawing a triangle / Drawing / Rendering and presentation / Acquiring an image from the swap chain through to the end of Drawing a triangle / Swap chain recreation.