GPU/Vulkan: Fix SSAA being near ineffective

This commit is contained in:
Connor McLaughlin 2021-03-14 01:32:44 +10:00
parent 0feb817130
commit 05f6f8579f

View file

@ -252,7 +252,7 @@ void GraphicsPipelineBuilder::SetMultisamples(u32 multisamples, bool per_sample_
{ {
m_multisample_state.rasterizationSamples = static_cast<VkSampleCountFlagBits>(multisamples); m_multisample_state.rasterizationSamples = static_cast<VkSampleCountFlagBits>(multisamples);
m_multisample_state.sampleShadingEnable = per_sample_shading; m_multisample_state.sampleShadingEnable = per_sample_shading;
m_multisample_state.minSampleShading = (multisamples > 1) ? 0.0f : 1.0f; m_multisample_state.minSampleShading = (multisamples > 1) ? 1.0f : 0.0f;
} }
void GraphicsPipelineBuilder::SetNoCullRasterizationState() void GraphicsPipelineBuilder::SetNoCullRasterizationState()