We don't use primitiveRestart for anything, let's not enable it. It has costs on some hardware.

This commit is contained in:
Henrik Rydgård committed 2021-10-08 22:22:08 +02:00
1 parent b426d12a17
commit e57770977b
1 file changed
+1 -1
+1 -1
View File
@@ -309,7 +309,7 @@ VkPipeline Vulkan2D::GetPipeline(VkRenderPass rp, VkShaderModule vs, VkShaderMod
VkPipelineInputAssemblyStateCreateInfo inputAssembly = { VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO };
inputAssembly.flags = 0;
inputAssembly.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
inputAssembly.primitiveRestartEnable = true;
inputAssembly.primitiveRestartEnable = false;
VkVertexInputAttributeDescription attrs[2];
int attributeCount = 2;