O'Reilly logo

Learning Vulkan by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Buffer Resource, Render Pass, Framebuffer, and Shaders with SPIR-V

In the previous chapter, we learned about Vulkan resource types; we understood what image resources (VkImage) are and implemented them in the swapchain image. In this chapter, we will discuss the second type of Vulkan resource called buffer resources (VkBuffer) and use them to prepare a simple geometry buffer.

This chapter will also introduce and implement a Render Pass and framebuffer. A Render Pass helps in assembling a single unit of work. It defines the attachments and subpasses associated with it that influence a single render job. A framebuffer consumes the created Render Pass and creates single-frame information for each corresponding swapchain image. Framebuffers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required