C Specification
If the sampler is created with VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK,
VK_BORDER_COLOR_INT_OPAQUE_BLACK,
VK_BORDER_COLOR_FLOAT_CUSTOM_EXT, or
VK_BORDER_COLOR_INT_CUSTOM_EXT borderColor, and that sampler
will be combined with an image view that does not have an
identity swizzle, and
VkPhysicalDeviceBorderColorSwizzleFeaturesEXT::borderColorSwizzleFromImage
is not enabled, then it is necessary to specify the component mapping of the
border color, by including the
VkSamplerBorderColorComponentMappingCreateInfoEXT structure in the
VkSamplerCreateInfo::pNext chain, to get defined results.
The VkSamplerBorderColorComponentMappingCreateInfoEXT structure is
defined as:
// Provided by VK_EXT_border_color_swizzle
typedef struct VkSamplerBorderColorComponentMappingCreateInfoEXT {
VkStructureType sType;
const void* pNext;
VkComponentMapping components;
VkBool32 srgb;
} VkSamplerBorderColorComponentMappingCreateInfoEXT;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
componentsis a VkComponentMapping structure specifying a remapping of the border color components. -
srgbindicates that the sampler will be combined with an image view that has an image format which is sRGB encoded.
Description
The VkComponentMapping 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.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.