mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Move operators out of dxvk namespace
This commit is contained in:
parent
ac78048c23
commit
4b8e8bed6e
@ -204,38 +204,6 @@ namespace dxvk {
|
||||
|
||||
bool IsDepthFormat(D3D9Format Format);
|
||||
|
||||
inline bool operator == (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
|
||||
return a.X == b.X &&
|
||||
a.Y == b.Y &&
|
||||
a.Width == b.Width &&
|
||||
a.Height == b.Height &&
|
||||
a.MinZ == b.MinZ &&
|
||||
a.MaxZ == b.MaxZ;
|
||||
}
|
||||
|
||||
inline bool operator != (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
|
||||
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 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;
|
||||
}
|
||||
@ -295,4 +263,37 @@ namespace dxvk {
|
||||
return D3D9TextureStageStateTypes(Type - 1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
inline bool operator == (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
|
||||
return a.X == b.X &&
|
||||
a.Y == b.Y &&
|
||||
a.Width == b.Width &&
|
||||
a.Height == b.Height &&
|
||||
a.MinZ == b.MinZ &&
|
||||
a.MaxZ == b.MaxZ;
|
||||
}
|
||||
|
||||
inline bool operator != (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
|
||||
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 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user