Color Write Mask

Atualizado em 2023/10/21
Tempos estimado de leitura: 1 min

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 afxColorBitmask
{
    afxColorMask_R    = AFX_FLAG(0), /// specifies that the R value is written to the color attachment for the
 appropriate sample. Otherwise, the value in memory is unmodified.
    afxColorMask_G    = AFX_FLAG(1), /// specifies that the G value is written to the color attachment for the
 appropriate sample. Otherwise, the value in memory is unmodified.
    afxColorMask_B    = AFX_FLAG(2), /// specifies that the B value is written to the color attachment for the
 appropriate sample. Otherwise, the value in memory is unmodified.
    afxColorMask_A    = AFX_FLAG(3), /// specifies that the A value is written to the color attachment for the
 appropriate sample. Otherwise, the value in memory is unmodified.
    afxColorMask_RG   = afxColorMask_R | afxColorMask_G,
    afxColorMask_RGB  = afxColorMask_RG | afxColorMask_B,
    afxColorMask_RGBA = afxColorMask_RGB | afxColorMask_A,
} afxColorBitmask;

afxColorBitmask is a bitmask type for setting a mask of zero or more color components.

The color write mask operation is applied regardless of whether blending is enabled.

Referências:
Esta publicação foi útil?
Desaprovar 0
Leituras: 2

Responses

Translate »