Class NVCoverageReductionMode
- Merge: When there are more samples in the pixel coverage than color samples, there is an implementation-dependent association of each pixel coverage sample to a color sample. In the merge mode, the color sample coverage is computed such that only if any associated sample in the pixel coverage is covered, the color sample is covered. This is the default mode.
- Truncate: When there are more raster samples (N) than color samples(M), there is one to one association of the first M raster samples to the M color samples; other raster samples are ignored.
When the number of raster samples is equal to the color samples, there is a one to one mapping between them in either of the above modes.
The new command GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV can be used to query the various raster, color, depth/stencil sample count and reduction mode combinations that are supported by the implementation. This extension would allow an implementation to support the behavior of both VK_NV_framebuffer_mixed_samples and VK_AMD_mixed_attachment_samples extensions simultaneously.
- Name String
VK_NV_coverage_reduction_mode- Extension Type
- Device extension
- Registered Extension Number
- 251
- Revision
- 1
- Extension and Version Dependencies
VK_NV_framebuffer_mixed_samplesandVK_KHR_get_physical_device_properties2or Version 1.1- Contact
- Kedarnath Thangudu kthangudu
Other Extension Metadata
- Last Modified Date
- 2019-01-29
- Contributors
- Kedarnath Thangudu, NVIDIA
- Jeff Bolz, NVIDIA
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intVkCoverageReductionModeNV - Specify the coverage reduction modestatic final intVkCoverageReductionModeNV - Specify the coverage reduction modestatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pCombinationCount, long pCombinations) Unsafe version of:GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVstatic intvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pCombinationCount, @Nullable VkFramebufferMixedSamplesCombinationNV.Buffer pCombinations) Array version of:GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVstatic intvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pCombinationCount, @Nullable VkFramebufferMixedSamplesCombinationNV.Buffer pCombinations) Query supported sample count combinations.
-
Field Details
-
VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION
public static final int VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_NV_COVERAGE_REDUCTION_MODE_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NVExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV
public static final int VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NVExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV
public static final int VK_STRUCTURE_TYPE_FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NVExtendsVkStructureType.Enum values:
- See Also:
-
VK_COVERAGE_REDUCTION_MODE_MERGE_NV
public static final int VK_COVERAGE_REDUCTION_MODE_MERGE_NVVkCoverageReductionModeNV - Specify the coverage reduction modeDescription
COVERAGE_REDUCTION_MODE_MERGE_NVspecifies that each color sample will be associated with an implementation-dependent subset of samples in the pixel coverage. If any of those associated samples are covered, the color sample is covered.COVERAGE_REDUCTION_MODE_TRUNCATE_NVspecifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample indexiis covered; other pixel coverage samples are discarded.
See Also
VkFramebufferMixedSamplesCombinationNV,VkPipelineCoverageReductionStateCreateInfoNV,CmdSetCoverageReductionModeNV- See Also:
-
VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV
public static final int VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NVVkCoverageReductionModeNV - Specify the coverage reduction modeDescription
COVERAGE_REDUCTION_MODE_MERGE_NVspecifies that each color sample will be associated with an implementation-dependent subset of samples in the pixel coverage. If any of those associated samples are covered, the color sample is covered.COVERAGE_REDUCTION_MODE_TRUNCATE_NVspecifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample indexiis covered; other pixel coverage samples are discarded.
See Also
VkFramebufferMixedSamplesCombinationNV,VkPipelineCoverageReductionStateCreateInfoNV,CmdSetCoverageReductionModeNV- See Also:
-
-
Method Details
-
nvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
public static int nvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pCombinationCount, long pCombinations) Unsafe version of:GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV- Parameters:
pCombinationCount- a pointer to an integer related to the number of combinations available or queried, as described below.
-
vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
public static int vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pCombinationCount, @Nullable VkFramebufferMixedSamplesCombinationNV.Buffer pCombinations) Query supported sample count combinations.C Specification
To query the set of mixed sample combinations of coverage reduction mode, rasterization samples and color, depth, stencil attachment sample counts that are supported by a physical device, call:
VkResult vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( VkPhysicalDevice physicalDevice, uint32_t* pCombinationCount, VkFramebufferMixedSamplesCombinationNV* pCombinations);Description
If
pCombinationsisNULL, then the number of supported combinations for the givenphysicalDeviceis returned inpCombinationCount. Otherwise,pCombinationCountmust point to a variable set by the application to the number of elements in thepCombinationsarray, and on return the variable is overwritten with the number of values actually written topCombinations. If the value ofpCombinationCountis less than the number of combinations supported for the givenphysicalDevice, at mostpCombinationCountvalues will be written topCombinations, andINCOMPLETEwill be returned instead ofSUCCESS, to indicate that not all the supported values were returned.Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepCombinationCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pCombinationCountis not 0, andpCombinationsis notNULL,pCombinationsmust be a valid pointer to an array ofpCombinationCountVkFramebufferMixedSamplesCombinationNVstructures
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device from which to query the set of combinations.pCombinationCount- a pointer to an integer related to the number of combinations available or queried, as described below.pCombinations- eitherNULLor a pointer to an array ofVkFramebufferMixedSamplesCombinationNVvalues, indicating the supported combinations of coverage reduction mode, rasterization samples, and color, depth, stencil attachment sample counts.
-
vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
public static int vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pCombinationCount, @Nullable VkFramebufferMixedSamplesCombinationNV.Buffer pCombinations) Array version of:GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
-