Explicitly set line width for rasterization state create info (validation error with newer layers)
This commit is contained in:
parent
ab8be6731b
commit
23a15ca52b
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue