Commit eed084f7 by Nicolas Capens

Disable sampleShadingEnable for VulkanHelloAPI

The Vulkan specification states that "If [the sampleRateShading feature] is not enabled, the sampleShadingEnable member of the VkPipelineMultisampleStateCreateInfo structure must be set to VK_FALSE". Since this app doesn't use sample rate shading, this can be disabled so that it can run on Vulkan drivers that don't support this feature.
parent 84a8b5b6
...@@ -1407,7 +1407,7 @@ void VulkanHelloAPI::initPipeline() ...@@ -1407,7 +1407,7 @@ void VulkanHelloAPI::initPipeline()
multisamplingInfo.flags = 0; multisamplingInfo.flags = 0;
multisamplingInfo.pSampleMask = nullptr; multisamplingInfo.pSampleMask = nullptr;
multisamplingInfo.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT; multisamplingInfo.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
multisamplingInfo.sampleShadingEnable = VK_TRUE; multisamplingInfo.sampleShadingEnable = VK_FALSE;
multisamplingInfo.alphaToCoverageEnable = VK_FALSE; multisamplingInfo.alphaToCoverageEnable = VK_FALSE;
multisamplingInfo.alphaToOneEnable = VK_FALSE; multisamplingInfo.alphaToOneEnable = VK_FALSE;
multisamplingInfo.minSampleShading = 0.0f; multisamplingInfo.minSampleShading = 0.0f;
......
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