mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-28 16:54:15 +01:00
[vulkan] Add operator overloads for VkOffset3D/2D
This commit is contained in:
parent
1bc0b51262
commit
9d2f31d231
@ -120,3 +120,29 @@ inline bool operator != (VkExtent2D a, VkExtent2D b) {
|
|||||||
return a.width != b.width
|
return a.width != b.width
|
||||||
|| a.height != b.height;
|
|| a.height != b.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool operator == (VkOffset3D a, VkOffset3D b) {
|
||||||
|
return a.x == b.x
|
||||||
|
&& a.y == b.y
|
||||||
|
&& a.z == b.z;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool operator != (VkOffset3D a, VkOffset3D b) {
|
||||||
|
return a.x != b.x
|
||||||
|
|| a.y != b.y
|
||||||
|
|| a.z != b.z;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool operator == (VkOffset2D a, VkOffset2D b) {
|
||||||
|
return a.x == b.x
|
||||||
|
&& a.y == b.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool operator != (VkOffset2D a, VkOffset2D b) {
|
||||||
|
return a.x != b.x
|
||||||
|
|| a.y != b.y;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user