Enable PrimitiveRestart in vulkan

This commit is contained in:
Phillip Stephens 2018-05-20 08:36:35 -07:00
parent c7d878a755
commit 505700419b
1 changed files with 1 additions and 1 deletions

View File

@ -2254,7 +2254,7 @@ public:
assemblyInfo.pNext = nullptr; assemblyInfo.pNext = nullptr;
assemblyInfo.flags = 0; assemblyInfo.flags = 0;
assemblyInfo.topology = PRIMITIVE_TABLE[int(m_prim)]; assemblyInfo.topology = PRIMITIVE_TABLE[int(m_prim)];
assemblyInfo.primitiveRestartEnable = VK_FALSE; assemblyInfo.primitiveRestartEnable = VK_TRUE;
VkPipelineViewportStateCreateInfo viewportInfo = {}; VkPipelineViewportStateCreateInfo viewportInfo = {};
viewportInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO; viewportInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;