Class VkPipelineCoverageToColorStateCreateInfoNV

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkPipelineCoverageToColorStateCreateInfoNV
    extends Struct
    implements NativeResource
    Structure specifying whether fragment coverage replaces a color.

    If coverageToColorEnable is TRUE, the fragment coverage information is treated as a bitmask with one bit for each sample (as in the Sample Mask section), and this bitmask 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 sample coverage, the low bits of the sample coverage bitmask are taken without any clamping. If the color attachment format has more bits than the sample coverage, the high bits of the sample coverage bitmask are filled with zeros.

    If Sample Shading is in use, the coverage bitmask only has bits set for samples that correspond to the fragment shader invocation that shades those samples.

    This pipeline stage occurs after sample counting and before blending, and is always performed after fragment shading regardless of the setting of EarlyFragmentTests.

    If coverageToColorEnable is FALSE, these operations are skipped. If this structure is not present, it is as if coverageToColorEnable is FALSE.

    Valid Usage
    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure
    • pNextNULL or a pointer to an extension-specific structure
    • flags – reserved for future use.
    • coverageToColorEnable – controls whether the fragment coverage value replaces a fragment color output.
    • coverageToColorLocation – controls which fragment shader color output value is replaced.


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