rsx: Add border color correction for hardware SNORM formats

This commit is contained in:
kd-11 2026-02-23 00:23:23 +03:00 committed by kd-11
parent 585305f434
commit 759ef0f5b0
5 changed files with 75 additions and 21 deletions

View file

@ -821,6 +821,14 @@ struct color4_base
a *= rhs;
}
void operator += (const color4_base<T>& rhs)
{
r += rhs.r;
g += rhs.g;
b += rhs.b;
a += rhs.a;
}
constexpr color4_base<T> operator * (const color4_base<T>& rhs) const
{
return { r * rhs.r, g * rhs.g, b * rhs.b, a * rhs.a };