mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[d3d9] Add operator overloads for D3DVIEWPORT9
This commit is contained in:
parent
3c8fdc2863
commit
777cd4cd64
@ -191,6 +191,19 @@ 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 IsPoolManaged(D3DPOOL Pool) {
|
||||
return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user