Drawing geometry (3D models) involves specifying the type of primitives that are formed from provided vertices. This is done through an input assembly state.
Specifying a pipeline input assembly state
How to do it...
- Create a variable of type VkPipelineInputAssemblyStateCreateInfo named input_assembly_state_create_info. Use the following values to initialize its members:
- VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO value for sType
- nullptr value for pNext
- 0 value for flags
- The selected type of primitives to be formed from vertices (point list, line list, line strip, triangle list, triangle strip, triangle fan, line list with adjacency, line strip with adjacency, triangle list with adjacency, triangle strip with adjacency, or patch list) for topology...