Safe Haskell | None |
---|---|
Language | Haskell2010 |
Name
VK_NV_fragment_coverage_to_color - device extension
VK_NV_fragment_coverage_to_color
- Name String
VK_NV_fragment_coverage_to_color
- Extension Type
- Device extension
- Registered Extension Number
- 150
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Contact
Other Extension Metadata
- Last Modified Date
- 2017-05-21
- Contributors
- Jeff Bolz, NVIDIA
Description
This extension allows the fragment coverage value, represented as an
integer bitmask, to be substituted for a color output being written to a
single-component color attachment with integer components (e.g.
FORMAT_R8_UINT
). The functionality provided
by this extension is different from simply writing the
SampleMask
fragment shader output, in
that the coverage value written to the framebuffer is taken after
stencil test and depth test, as well as after fragment operations such
as alpha-to-coverage.
This functionality may be useful for deferred rendering algorithms, where the second pass needs to know which samples belong to which original fragments.
New Structures
New Bitmasks
New Enum Constants
Version History
Revision 1, 2017-05-21 (Jeff Bolz)
- Internal revisions
See Also
PipelineCoverageToColorStateCreateFlagsNV
,
PipelineCoverageToColorStateCreateInfoNV
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- data PipelineCoverageToColorStateCreateInfoNV = PipelineCoverageToColorStateCreateInfoNV {}
- newtype PipelineCoverageToColorStateCreateFlagsNV = PipelineCoverageToColorStateCreateFlagsNV Flags
- type NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION = 1
- pattern NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION :: forall a. Integral a => a
- type NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME = "VK_NV_fragment_coverage_to_color"
- pattern NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
data PipelineCoverageToColorStateCreateInfoNV Source #
VkPipelineCoverageToColorStateCreateInfoNV - Structure specifying whether fragment coverage replaces a color
Description
If the pNext
chain of
PipelineMultisampleStateCreateInfo
includes a
PipelineCoverageToColorStateCreateInfoNV
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 present, it is as
if coverageToColorEnable
is FALSE
.
Valid Usage
-
If
coverageToColorEnable
isTRUE
, then the render pass subpass indicated byGraphicsPipelineCreateInfo
::renderPass
andGraphicsPipelineCreateInfo
::subpass
must have a color attachment at the location selected bycoverageToColorLocation
, with aFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
Valid Usage (Implicit)
See Also
Bool32
,
PipelineCoverageToColorStateCreateFlagsNV
,
StructureType
PipelineCoverageToColorStateCreateInfoNV | |
|
Instances
newtype PipelineCoverageToColorStateCreateFlagsNV Source #
VkPipelineCoverageToColorStateCreateFlagsNV - Reserved for future use
Description
PipelineCoverageToColorStateCreateFlagsNV
is a bitmask type for
setting a mask, but is currently reserved for future use.
See Also
Instances
pattern NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION :: forall a. Integral a => a Source #
type NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME = "VK_NV_fragment_coverage_to_color" Source #
pattern NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #