Chapter 10. Descriptors and Push Constant

In the previous chapter, we rendered our first drawing object on the display output. In this chapter, we will take the previous implementation ahead and implement some 3D transformations on the rendered geometry with the help of Uniforms. Uniforms are read-only blocks of data accessible in the shader, and their value is constant for an entire draw call.

Uniforms are managed by descriptors and descriptor pools. A descriptor helps connect the resources with the shaders. But it may be expected to change frequently; therefore, the allocation is performed through a preallocated descriptor buffer called the descriptor pool.

In this chapter, we will also implement a push constant. A push constant allows you to ...

Get Learning Vulkan now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.