]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/blend.h
Add support for alpha to coverage
[libs/gl.git] / source / core / blend.h
index 3edebc8c7f4bdde90e8d7aa14c2ab87cc300ff04..874230c682c9ccf82e21c88a644f1dc61aa6034d 100644 (file)
@@ -67,6 +67,7 @@ struct Blend
        BlendFactor dst_factor = ZERO;
        Color constant = { 0.0f, 0.0f, 0.0f, 0.0f };
        ColorWriteMask write_mask = WRITE_ALL;
+       bool alpha_to_coverage = false;
 
        Blend() = default;
        Blend(BlendFactor, BlendFactor);
@@ -79,7 +80,8 @@ struct Blend
 inline bool Blend::operator==(const Blend &other) const
 {
        return enabled==other.enabled && equation==other.equation && src_factor==other.src_factor &&
-               dst_factor==other.dst_factor && constant==other.constant && write_mask==other.write_mask;
+               dst_factor==other.dst_factor && constant==other.constant && write_mask==other.write_mask &&
+               alpha_to_coverage==other.alpha_to_coverage;
 }