Class VkPipelineCoverageToColorStateCreateInfoNV

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineCoverageToColorStateCreateInfoNV>
org.lwjgl.vulkan.VkPipelineCoverageToColorStateCreateInfoNV
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPipelineCoverageToColorStateCreateInfoNV extends org.lwjgl.system.Struct<VkPipelineCoverageToColorStateCreateInfoNV> implements org.lwjgl.system.NativeResource
Structure specifying whether fragment coverage replaces a color.
Description

If the pNext chain of VkPipelineMultisampleStateCreateInfo includes a VkPipelineCoverageToColorStateCreateInfoNV structure, then that structure controls whether the fragment coverage is substituted for a fragment color output and, if so, which output is replaced.

If coverageToColorEnable is TRUE, the coverage mask replaces the first component of the color value corresponding to the fragment shader output location with Location equal to coverageToColorLocation and Index equal to zero. If the color attachment format has fewer bits than the coverage mask, the low bits of the sample coverage mask are taken without any clamping. If the color attachment format has more bits than the coverage mask, the high bits of the sample coverage mask are filled with zeros.

If coverageToColorEnable is FALSE, these operations are skipped. If this structure is not included in the pNext chain, it is as if coverageToColorEnable is FALSE.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkPipelineCoverageToColorStateCreateInfoNV {
     VkStructureType sType();
     void const * pNext();
     VkPipelineCoverageToColorStateCreateFlagsNV flags();
     VkBool32 coverageToColorEnable();
     uint32_t coverageToColorLocation();
 }