In vulkan there is a struct which is required for pipeline creation, named VkPipelineRasterizationStateCreateInfo
. In this struct there is a member named rasterizerDiscardEnable
. If this member is set to VK_TRUE
then all primitives are discarded before the rasterization step. This disables any output to the framebuffer.
I cannot think of a scenario where this might make any sense. In which cases could it be useful?