Verified Commit 0668a210 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Fixed validation layer output related to primitive overestimation


Signed-off-by: Tobias Frisch's avatarTobias Frisch <tfrisch@uni-koblenz.de>
parent 89d8cbd8
Pipeline #27605 passed with stages
in 8 minutes and 4 seconds
......@@ -274,10 +274,13 @@ namespace vkcv
static vk::PipelineRasterizationConservativeStateCreateInfoEXT conservativeRasterization;
if (config.m_UseConservativeRasterization) {
const float overestimationSize = 1.0f - conservativeRasterProperties.primitiveOverestimationSize;
const float maxOverestimationSize = conservativeRasterProperties.maxExtraPrimitiveOverestimationSize;
conservativeRasterization = vk::PipelineRasterizationConservativeStateCreateInfoEXT(
{},
vk::ConservativeRasterizationModeEXT::eOverestimate,
std::max(1 - conservativeRasterProperties.primitiveOverestimationSize, 0.f)
std::min(std::max(overestimationSize, 0.f), maxOverestimationSize)
);
pipelineRasterizationStateCreateInfo.pNext = &conservativeRasterization;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment