ColorMask

sg_color_mask

Selects the active color channels when writing a fragment color to the framebuffer. This is used in the members sg_pipeline_desc.colorsi.write_mask when creating a pipeline object.

The default colormask is SG_COLORMASK_RGBA (write all colors channels)

NOTE: since the color mask value 0 is reserved for the default value (SG_COLORMASK_RGBA), use SG_COLORMASK_NONE if all color channels should be disabled

Values

ValueMeaning
Default0
None16
R1
G2
Rg3
B4
Rb5
Gb6
Rgb7
A8
Ra9
Ga10
Rga11
Ba12
Rba13
Gba14
Rgba15

Meta