VkComponentSwizzle - Specify how a component is swizzled
Description
COMPONENT_SWIZZLE_IDENTITY specifies that the component is set to the identity swizzle.
COMPONENT_SWIZZLE_ZERO specifies that the component is set to zero.
COMPONENT_SWIZZLE_ONE specifies that the component is set to either 1 or 1.0, depending on whether the type of the image view format is integer or floating-point respectively, as determined by the Format Definition section for each Format.
COMPONENT_SWIZZLE_R specifies that the component is set to the value of the R component of the image.
COMPONENT_SWIZZLE_G specifies that the component is set to the value of the G component of the image.
COMPONENT_SWIZZLE_B specifies that the component is set to the value of the B component of the image.
COMPONENT_SWIZZLE_A specifies that the component is set to the value of the A component of the image.
Setting the identity swizzle on a component is equivalent to setting the identity mapping on that component. That is:
Component | Identity Mapping |
|---|---|
| |
| |
| |
|
Component Mappings Equivalent To COMPONENT_SWIZZLE_IDENTITY
See Also
Constructors
Instances6Eq, Ord, Read, Show, Storable, Zero
Eq ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzleOrd ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzleRead ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzleShow ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzleStorable ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzleZero ComponentSwizzleDefined in vulkan-3.27 · Vulkan.Core10.Enums.ComponentSwizzle