Specifying graphics pipeline creation parameters
Creating a graphics pipeline requires us to prepare many parameters controlling its many different aspects. All these parameters are grouped into a variable of type VkGraphicsPipelineCreateInfo
which needs to be properly initialized before we can use it to create a pipeline.
How to do it...
- Create a variable of a bitfield type
VkPipelineCreateFlags
namedadditional_options
through which provide 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 pipelines may be created from it
- Derivative: specifies that this pipeline will be created based on another, already created pipeline
- Create a variable of type
std::vector<VkPipelineShaderStageCreateInfo>
namedshader_stage_create_infos
. For each shader stage enabled in a given pipeline, add a new element to theshader_stage_create_infos
vector, specifying the...