Validation layer says the fragment shader library needs to know the multisampling sample count

This commit is contained in:
Magnus Norddahl 2025-06-22 07:08:56 +02:00
commit 6270d51f6f

View file

@ -908,6 +908,8 @@ void VkRenderPassSetup::AddFragmentShader(GraphicsPipelineBuilder& builder, cons
builder.DepthStencilEnable(key.DepthTest, key.DepthWrite, key.StencilTest);
builder.DepthFunc(depthfunc2vk[key.DepthFunc]);
builder.Stencil(VK_STENCIL_OP_KEEP, op2vk[key.StencilPassOp], VK_STENCIL_OP_KEEP, VK_COMPARE_OP_EQUAL, 0xffffffff, 0xffffffff, 0);
builder.RasterizationSamples((VkSampleCountFlagBits)PassKey.Samples);
}
void VkRenderPassSetup::AddFragmentOutputInterface(GraphicsPipelineBuilder& builder, FRenderStyle renderStyle, VkColorComponentFlags colorMask)