1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[d3d9] Add equality operator overloads for POINT

This commit is contained in:
Joshua Ashton 2020-02-20 01:39:13 +00:00
parent 261a242486
commit 17166a8aeb

View File

@ -234,6 +234,14 @@ namespace dxvk {
return !(a == b);
}
inline bool operator == (const POINT& a, const POINT& b) {
return a.x == b.x && a.y == b.y;
}
inline bool operator != (const POINT& a, const POINT& b) {
return !(a == b);
}
inline bool IsPoolManaged(D3DPOOL Pool) {
return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX;
}