Enum
VkColorComponentFlagBits
Bitmask controlling which components are written to the framebuffer
Bits which can be set in
VkPipelineColorBlendAttachmentState::colorWriteMask, determining
whether the final color values R, G, B and A are written to the
framebuffer attachment, are:
typedef enum VkColorComponentFlagBits {
VK_COLOR_COMPONENT_R_BIT = 0x00000001,
VK_COLOR_COMPONENT_G_BIT = 0x00000002,
VK_COLOR_COMPONENT_B_BIT = 0x00000004,
VK_COLOR_COMPONENT_A_BIT = 0x00000008,
} VkColorComponentFlagBits;
pub struct ColorComponentFlagBits(u32);
impl ColorComponentFlagBits {
pub const R: Self = 0x00000001;
pub const G: Self = 0x00000002;
pub const B: Self = 0x00000004;
pub const A: Self = 0x00000008;
}
VK_COLOR_COMPONENT_R_BITspecifies that the R value is written to the color attachment for the appropriate sample. Otherwise, the value in memory is unmodified.VK_COLOR_COMPONENT_G_BITspecifies that the G value is written to the color attachment for the appropriate sample. Otherwise, the value in memory is unmodified.VK_COLOR_COMPONENT_B_BITspecifies that the B value is written to the color attachment for the appropriate sample. Otherwise, the value in memory is unmodified.VK_COLOR_COMPONENT_A_BITspecifies that the A value is written to the color attachment for the appropriate sample. Otherwise, the value in memory is unmodified.
The color write mask operation is applied regardless of whether blending is enabled.
The color write mask operation is applied only if Color Write Enable is enabled for the respective attachment. Otherwise the color write mask is ignored and writes to all components of the attachment are disabled.
Parent
VK_VERSION_1_0Type
Enum