Specifying a pipeline input assembly state
Drawing geometry (3D models) involves specifying the type of primitives that are formed from provided vertices. This is done through an input assembly state.
How to do it...
- Create a variable of type
VkPipelineInputAssemblyStateCreateInfo
namedinput_assembly_state_create_info
. Use the following values to initialize its members:VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
value forsType
nullptr
value forpNext
0
value forflags
- 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
- For the
primitiveRestartEnable
member, in cases of drawing commands that use vertex indices, specify whether a special index value should restart a primitive (VK_TRUE
, can't be used for list primitives) or if a primitive restart should...