Explicitly set line width for rasterization state create info (validation error with newer layers)

This commit is contained in:
saschawillems 2016-04-24 13:00:48 +02:00
parent ab8be6731b
commit 23a15ca52b
2 changed files with 2 additions and 0 deletions

View file

@ -784,6 +784,7 @@ VkPipelineRasterizationStateCreateInfo vkTools::initializers::pipelineRasterizat
pipelineRasterizationStateCreateInfo.frontFace = frontFace; pipelineRasterizationStateCreateInfo.frontFace = frontFace;
pipelineRasterizationStateCreateInfo.flags = flags; pipelineRasterizationStateCreateInfo.flags = flags;
pipelineRasterizationStateCreateInfo.depthClampEnable = VK_TRUE; pipelineRasterizationStateCreateInfo.depthClampEnable = VK_TRUE;
pipelineRasterizationStateCreateInfo.lineWidth = 1.0f;
return pipelineRasterizationStateCreateInfo; return pipelineRasterizationStateCreateInfo;
} }

View file

@ -688,6 +688,7 @@ public:
rasterizationState.depthClampEnable = VK_FALSE; rasterizationState.depthClampEnable = VK_FALSE;
rasterizationState.rasterizerDiscardEnable = VK_FALSE; rasterizationState.rasterizerDiscardEnable = VK_FALSE;
rasterizationState.depthBiasEnable = VK_FALSE; rasterizationState.depthBiasEnable = VK_FALSE;
rasterizationState.lineWidth = 1.0f;
// Color blend state // Color blend state
// Describes blend modes and color masks // Describes blend modes and color masks