We know how to create descriptor set layouts and use them to create a pipeline layout. Here, in this sample recipe, we will have a look at how to create a specific pipeline layout--one which allows a pipeline to access a combined image sampler, a uniform buffer, and a selected number of push constant ranges.
Creating a pipeline layout with a combined image sampler, a buffer, and push constant ranges
How to do it...
- Take the handle of a logical device and store it in a variable of type VkDevice named logical_device.
- Create a variable of type std::vector<VkDescriptorSetLayoutBinding> named descriptor_set_layout_bindings.
- Add a new element to the descriptor_set_layout_bindings vector and use the following values to initialize its members:
- 0 value for binding...