A compute pipeline is the second type of pipeline available in the Vulkan API. It is used for dispatching compute shaders, which can perform any mathematical operations. And as the compute pipeline is much simpler than the graphics pipeline, we create it by providing far fewer parameters.
Creating a compute pipeline
How to do it...
- Take the handle of a logical device and initialize a variable of type VkDevice named logical_device with it.
- Create a variable of a bitfield type VkPipelineCreateFlags named additional_options. Initialize it with any combination of these additional pipeline creation options:
- Disable optimization: specifies that the created pipeline won't be optimized, but the creation process may be faster
- Allow derivatives: specifies that other...