vulkan-3.26.1: Bindings to the Vulkan graphics API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vulkan.Extensions.VK_EXT_border_color_swizzle

Description

Name

VK_EXT_border_color_swizzle - device extension

VK_EXT_border_color_swizzle

Name String
VK_EXT_border_color_swizzle
Extension Type
Device extension
Registered Extension Number
412
Revision
1
Ratification Status
Not ratified
Extension and Version Dependencies
VK_EXT_custom_border_color
Special Uses
Contact

Other Extension Metadata

Last Modified Date
2021-10-12
IP Status
No known IP claims.
Contributors
  • Graeme Leese, Broadcom
  • Jan-Harald Fredriksen, Arm
  • Ricardo Garcia, Igalia
  • Shahbaz Youssefi, Google
  • Stu Smith, AMD

Description

After the publication of VK_EXT_custom_border_color, it was discovered that some implementations had undefined behavior when combining a sampler that uses a custom border color with image views whose component mapping is not the identity mapping.

Since VK_EXT_custom_border_color has already shipped, this new extension VK_EXT_border_color_swizzle was created to define the interaction between custom border colors and non-identity image view swizzles, and provide a work-around for implementations that must pre-swizzle the sampler border color to match the image view component mapping it is combined with.

This extension also defines the behavior between samplers with an opaque black border color and image views with a non-identity component swizzle, which was previously left undefined.

New Structures

New Enum Constants

Issues

None.

Version History

  • Revision 1, 2021-10-12 (Piers Daniell)

    • Internal revisions.

See Also

PhysicalDeviceBorderColorSwizzleFeaturesEXT, SamplerBorderColorComponentMappingCreateInfoEXT

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

Documentation

data SamplerBorderColorComponentMappingCreateInfoEXT Source #

VkSamplerBorderColorComponentMappingCreateInfoEXT - Structure specifying the component mapping of the border color

Description

The ComponentMapping components member describes a remapping from components of the border color to components of the vector returned by shader image instructions when the border color is used.

Valid Usage

Valid Usage (Implicit)

See Also

VK_EXT_border_color_swizzle, Bool32, ComponentMapping, StructureType

Constructors

SamplerBorderColorComponentMappingCreateInfoEXT 

Fields

  • components :: ComponentMapping

    components is a ComponentMapping structure specifying a remapping of the border color components.

  • srgb :: Bool

    srgb indicates that the sampler will be combined with an image view that has an image format which is sRGB encoded.

Instances

Instances details
Storable SamplerBorderColorComponentMappingCreateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

Show SamplerBorderColorComponentMappingCreateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

FromCStruct SamplerBorderColorComponentMappingCreateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

ToCStruct SamplerBorderColorComponentMappingCreateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

Zero SamplerBorderColorComponentMappingCreateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

data PhysicalDeviceBorderColorSwizzleFeaturesEXT Source #

VkPhysicalDeviceBorderColorSwizzleFeaturesEXT - Structure describing whether samplers with custom border colors require the component swizzle specified in order to have defined behavior

Members

This structure describes the following features:

Description

If the PhysicalDeviceBorderColorSwizzleFeaturesEXT structure is included in the pNext chain of the PhysicalDeviceFeatures2 structure passed to getPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported. PhysicalDeviceBorderColorSwizzleFeaturesEXT can also be used in the pNext chain of DeviceCreateInfo to selectively enable these features.

Valid Usage (Implicit)

See Also

VK_EXT_border_color_swizzle, Bool32, StructureType

Constructors

PhysicalDeviceBorderColorSwizzleFeaturesEXT 

Fields

Instances

Instances details
Storable PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

Show PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

Eq PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

FromCStruct PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

ToCStruct PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

Zero PhysicalDeviceBorderColorSwizzleFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_border_color_swizzle

type EXT_BORDER_COLOR_SWIZZLE_EXTENSION_NAME = "VK_EXT_border_color_swizzle" Source #