Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class NVCoverageReductionMode

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

When using a framebuffer with mixed samples, a per-fragment coverage reduction operation is performed which generates color sample coverage from the pixel coverage. This extension defines the following modes to control how this reduction is performed.

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.

VK_NV_coverage_reduction_mode
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_samples and VK_KHR_get_physical_device_properties2
Contact
Other Extension Metadata
Last Modified Date
2019-01-29
Contributors
  • Kedarnath Thangudu, NVIDIA
  • Jeff Bolz, NVIDIA

Field Summary

Modifier and TypeField and Description
public static final int
VK_COVERAGE_REDUCTION_MODE_MERGE_NV

VkCoverageReductionModeNV - Specify the coverage reduction mode Description

  • COVERAGE_REDUCTION_MODE_MERGE_NV specifies 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_NV specifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample index i is covered; other pixel coverage samples are discarded.
public static final int
VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV

VkCoverageReductionModeNV - Specify the coverage reduction mode Description

  • COVERAGE_REDUCTION_MODE_MERGE_NV specifies 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_NV specifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample index i is covered; other pixel coverage samples are discarded.
public static final String
public static final int
VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(VkPhysicalDevice physicalDevice, long
a pointer to an integer related to the number of combinations available or queried, as described below.
pCombinationCount
,
long pCombinations)

Unsafe version of: GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV

public static int
vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(VkPhysicalDevice
the physical device from which to query the set of combinations.
physicalDevice
,
IntBuffer
a pointer to an integer related to the number of combinations available or queried, as described below.
pCombinationCount
,
VkFramebufferMixedSamplesCombinationNV.Buffer
either NULL or a pointer to an array of VkFramebufferMixedSamplesCombinationNV values, indicating the supported combinations of coverage reduction mode, rasterization samples, and color, depth, stencil attachment sample counts.
pCombinations
)

Query supported sample count combinations.

public static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_COVERAGE_REDUCTION_MODE_MERGE_NVback to summary
public static final int VK_COVERAGE_REDUCTION_MODE_MERGE_NV

VkCoverageReductionModeNV - Specify the coverage reduction mode

Description
  • COVERAGE_REDUCTION_MODE_MERGE_NV specifies 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_NV specifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample index i is covered; other pixel coverage samples are discarded.
See Also

VkFramebufferMixedSamplesCombinationNV, VkPipelineCoverageReductionStateCreateInfoNV, CmdSetCoverageReductionModeNV

VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NVback to summary
public static final int VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV

VkCoverageReductionModeNV - Specify the coverage reduction mode

Description
  • COVERAGE_REDUCTION_MODE_MERGE_NV specifies 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_NV specifies that for color samples present in the color attachments, a color sample is covered if the pixel coverage sample with the same sample index i is covered; other pixel coverage samples are discarded.
See Also

VkFramebufferMixedSamplesCombinationNV, VkPipelineCoverageReductionStateCreateInfoNV, CmdSetCoverageReductionModeNV

VK_NV_COVERAGE_REDUCTION_MODE_EXTENSION_NAMEback to summary
public static final String VK_NV_COVERAGE_REDUCTION_MODE_EXTENSION_NAME

The extension name.

VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSIONback to summary
public static final int VK_NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NVback to summary
public static final int VK_STRUCTURE_TYPE_FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NVback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NVback to summary
public static final int VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV

Extends VkStructureType.

Enum values:

Constructor Detail

NVCoverageReductionModeback to summary
protected NVCoverageReductionMode()

Method Detail

nvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVback to summary
public static int nvkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(VkPhysicalDevice physicalDevice, long pCombinationCount, long pCombinations)

Unsafe version of: GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV

Parameters
pCombinationCount:long

a pointer to an integer related to the number of combinations available or queried, as described below.

vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVback to summary
public static int vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(VkPhysicalDevice physicalDevice, IntBuffer pCombinationCount, 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 pCombinations is NULL, then the number of supported combinations for the given physicalDevice is returned in pCombinationCount. Otherwise, pCombinationCount must point to a variable set by the user to the number of elements in the pCombinations array, and on return the variable is overwritten with the number of values actually written to pCombinations. If the value of pCombinationCount is less than the number of combinations supported for the given physicalDevice, at most pCombinationCount values will be written to pCombinations, and INCOMPLETE will be returned instead of SUCCESS, to indicate that not all the supported values were returned.

Valid Usage (Implicit)
  • physicalDevice must be a valid VkPhysicalDevice handle
  • pCombinationCount must be a valid pointer to a uint32_t value
  • If the value referenced by pCombinationCount is not 0, and pCombinations is not NULL, pCombinations must be a valid pointer to an array of pCombinationCount VkFramebufferMixedSamplesCombinationNV structures
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkFramebufferMixedSamplesCombinationNV

Parameters
physicalDevice:VkPhysicalDevice

the physical device from which to query the set of combinations.

pCombinationCount:IntBuffer

a pointer to an integer related to the number of combinations available or queried, as described below.

pCombinations:VkFramebufferMixedSamplesCombinationNV.Buffer

either NULL or a pointer to an array of VkFramebufferMixedSamplesCombinationNV values, indicating the supported combinations of coverage reduction mode, rasterization samples, and color, depth, stencil attachment sample counts.

Annotations
@NativeType:VkResult
vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNVback to summary
public static int vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(VkPhysicalDevice physicalDevice, int[] pCombinationCount, VkFramebufferMixedSamplesCombinationNV.Buffer pCombinations)

Array version of: GetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV

Annotations
@NativeType:VkResult