In the previous chapter, we created all the resources that were required for an object to be drawn. In this chapter, we will create the ObjectRenderer class, which will draw an object on the viewport. This class is used so that we have an actual geometric object to draw and view alongside our awesome purple viewport.
We will also learn how to synchronize CPU and GPU operations at the end of the chapter, which will remove the validation error that we got in Chapter 11, Creating Object Resources.
Before we set the scene up for rendering, we have to prepare one last thing for the geometry render; that is, the graphics pipeline. We will begin setting this up next.
In this chapter, we will cover the following topics:
- Preparing the GraphicsPipeline class
- The ObjectRenderer class
- Changes to the VulkanContext class
- The Camera class
- Drawing an object
- Synchronizing...