BlendFactor

sg_blend_factor

The source and destination factors in blending operations. This is used in the following members when creating a pipeline object:

sg_pipeline_desc .colorsi .blend .src_factor_rgb .dst_factor_rgb .src_factor_alpha .dst_factor_alpha

The default value is SG_BLENDFACTOR_ONE for source factors, and SG_BLENDFACTOR_ZERO for destination factors

Values

ValueMeaning
Default
Zero
One
Src_color
One_minus_src_color
Src_alpha
One_minus_src_alpha
Dst_color
One_minus_dst_color
Dst_alpha
One_minus_dst_alpha
Src_alpha_saturated
Blend_color
One_minus_blend_color
Blend_alpha
One_minus_blend_alpha
Num

Meta