blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

Validation Layer Error: I found out about it on Tutorial 5 part 1. #44

Open SireNiklas opened 8 months ago

SireNiklas commented 8 months ago

Hello! I get this error:

validation layer: Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-alphaToCoverageEnable-08891 ] | MessageID = 0xd9edb6c4 | vkCreateGraphicsPipelines(): pCreateInfos[0].pDepthStencilState is NULL when rasterization is enabled and subpass uses a depth/stencil attachment. The Vulkan spec states: If the pipeline is being created with fragment shader state, the VkPipelineMultisampleStateCreateInfo::alphaToCoverageEnable is not ignored and is VK_TRUE, then the Fragment Output Interface must contain a variable for the alpha Component word in Location 0 at Index 0 (https://vulkan.lunarg.com/doc/view/1.3.268.0/windows/1.3-extensions/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-alphaToCoverageEnable-08891)

From what I understand: VkPipelineMultisampleStateCreateInfo::alphaToCoverageEnable is written in as "VK_FALSE" but due to using a "Fragment Shader State" it ignores that flag and enables it.

I am unsure to exactly what it means or what to do about it. I am doing exactly as it states, I am unsure if there is any other way to go about it or if I missed something.

Thank you, Nicholas.