mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-04 22:18:53 +00:00
rsx: Add border color correction for hardware SNORM formats
This commit is contained in:
parent
585305f434
commit
759ef0f5b0
5 changed files with 75 additions and 21 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue