vulkan-2.0.0.1: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_EXT_sampler_filter_minmax

Synopsis

Documentation

newtype VkSamplerReductionModeEXT Source #

VkSamplerReductionModeEXT - Specify reduction mode for texture filtering

See Also

VkSamplerReductionModeCreateInfoEXT

Instances
Eq VkSamplerReductionModeEXT Source # 
Instance details
Ord VkSamplerReductionModeEXT Source # 
Instance details
Read VkSamplerReductionModeEXT Source # 
Instance details
Show VkSamplerReductionModeEXT Source # 
Instance details
Storable VkSamplerReductionModeEXT Source # 
Instance details

pattern VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT :: VkSamplerReductionModeEXT Source #

VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT specifies that texel values are combined by computing a weighted average of values in the footprint, using weights as specified in the image operations chapter.

pattern VK_SAMPLER_REDUCTION_MODE_MIN_EXT :: VkSamplerReductionModeEXT Source #

VK_SAMPLER_REDUCTION_MODE_MIN_EXT specifies that texel values are combined by taking the component-wise minimum of values in the footprint with non-zero weights.

pattern VK_SAMPLER_REDUCTION_MODE_MAX_EXT :: VkSamplerReductionModeEXT Source #

VK_SAMPLER_REDUCTION_MODE_MAX_EXT specifies that texel values are combined by taking the component-wise maximum of values in the footprint with non-zero weights.

data VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT Source #

VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT - Structure describing sampler filter minmax limits that can be supported by an implementation

Members

The members of the VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT structure describe the following implementation-dependent limits:

Description

  • filterMinmaxSingleComponentFormats is a boolean value indicating whether a minimum set of required formats support min/max filtering.
  • filterMinmaxImageComponentMapping is a boolean value indicating whether the implementation supports non-identity component mapping of the image when doing min/max filtering.

If the VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.

If filterMinmaxSingleComponentFormats is VK_TRUE, the following formats must support the VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT feature with VK_IMAGE_TILING_OPTIMAL, if they support VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT.

  • VK_FORMAT_R8_UNORM
  • VK_FORMAT_R8_SNORM
  • VK_FORMAT_R16_UNORM
  • VK_FORMAT_R16_SNORM
  • VK_FORMAT_R16_SFLOAT
  • VK_FORMAT_R32_SFLOAT
  • VK_FORMAT_D16_UNORM
  • VK_FORMAT_X8_D24_UNORM_PACK32
  • VK_FORMAT_D32_SFLOAT
  • VK_FORMAT_D16_UNORM_S8_UINT
  • VK_FORMAT_D24_UNORM_S8_UINT
  • VK_FORMAT_D32_SFLOAT_S8_UINT

If the format is a depth/stencil format, this bit only specifies that the depth aspect (not the stencil aspect) of an image of this format supports min/max filtering, and that min/max filtering of the depth aspect is supported when depth compare is disabled in the sampler.

If filterMinmaxImageComponentMapping is VK_FALSE the component mapping of the image view used with min/max filtering must have been created with the r component set to VK_COMPONENT_SWIZZLE_IDENTITY. Only the r component of the sampled image value is defined and the other component values are undefined. If filterMinmaxImageComponentMapping is VK_TRUE this restriction does not apply and image component mapping works as normal.

Valid Usage (Implicit)

  • sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT

See Also

VkBool32, VkStructureType

Instances
Eq VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT Source # 
Instance details
Show VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT Source # 
Instance details
Storable VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT Source # 
Instance details

data VkSamplerReductionModeCreateInfoEXT Source #

VkSamplerReductionModeCreateInfoEXT - Structure specifying sampler reduction mode

Description

If this structure is not present, reductionMode is considered to be VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT.

Valid Usage (Implicit)

  • sType must be VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT

See Also

VkSamplerReductionModeEXT, VkStructureType

Constructors

VkSamplerReductionModeCreateInfoEXT 

Fields