1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 22:54:16 +01:00

[vulkan] Add operator overloads for VkOffset3D/2D

This commit is contained in:
Joshua Ashton 2019-06-13 03:12:23 +01:00 committed by Philip Rebohle
parent 1bc0b51262
commit 9d2f31d231

View File

@ -120,3 +120,29 @@ inline bool operator != (VkExtent2D a, VkExtent2D b) {
return a.width != b.width
|| 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;
}