Vulkan: Restart Index #108421

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:vulkan-restart-index into main 2023-05-30 13:45:47 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ void VKPipeline::finalize(VKContext &context,
VkPipelineInputAssemblyStateCreateInfo pipeline_input_assembly = {};
pipeline_input_assembly.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
pipeline_input_assembly.topology = to_vk_primitive_topology(prim_type);
pipeline_input_assembly.primitiveRestartEnable =
ELEM(prim_type, GPU_PRIM_TRIS, GPU_PRIM_LINES, GPU_PRIM_POINTS) ? VK_FALSE : VK_TRUE;
pipeline_create_info.pInputAssemblyState = &pipeline_input_assembly;
/* Viewport state. */