mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Add operator overloads for RECT
This commit is contained in:
parent
777cd4cd64
commit
7b0723520a
@ -204,6 +204,17 @@ namespace dxvk {
|
||||
return !(a == b);
|
||||
}
|
||||
|
||||
inline bool operator == (const RECT& a, const RECT& b) {
|
||||
return a.left == b.left &&
|
||||
a.right == b.right &&
|
||||
a.top == b.top &&
|
||||
a.bottom == b.bottom;
|
||||
}
|
||||
|
||||
inline bool operator != (const RECT& a, const RECT& b) {
|
||||
return !(a == b);
|
||||
}
|
||||
|
||||
inline bool IsPoolManaged(D3DPOOL Pool) {
|
||||
return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user