I want to render a to a depth buffer without ever attaching a color attachment but I've been getting these validation warnings
Validation Warning: [ Undefined-Value-ShaderOutputNotConsumed ] | MessageID = 0x9805298c
vkCreateGraphicsPipelines(): pCreateInfos[0] Inside the fragment shader, it writes to output Location 0 but there is no VkSubpassDescription::pColorAttachments[0] and this write is unused.
Spec information at https://docs.vulkan.org/spec/latest/chapters/interfaces.html#interfaces-fragmentoutput
Objects: 1
[0] VkShaderModule 0x2f000000002f
Validation Warning: [ Undefined-Value-ShaderOutputNotConsumed ] | MessageID = 0x9805298c
vkCreateGraphicsPipelines(): pCreateInfos[0] Inside the fragment shader, it writes to output Location 0 but there is no VkSubpassDescription::pColorAttachments[0] and this write is unused.
Spec information at https://docs.vulkan.org/spec/latest/chapters/interfaces.html#interfaces-fragmentoutput
Objects: 1
[0] VkShaderModule 0x320000000032
I want to leave out the color attachment and fragment shading while simply retaining the depth information?
Is it even worth attempting this?