summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-03 21:00:00 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-03 21:00:00 +0000
commitf1d382b62d674616de7979f5f3d78f74ea31f0e0 (patch)
treed689db652dd2bb9fd80d1a474914679a4ba05af9 /Graphics/GraphicsEngine
parentFew fixes to render passes (diff)
downloadDiligentCore-f1d382b62d674616de7979f5f3d78f74ea31f0e0.tar.gz
DiligentCore-f1d382b62d674616de7979f5f3d78f74ea31f0e0.zip
Added comparison opertors to SubpassDependencyDesc struct
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/RenderPass.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/RenderPass.h b/Graphics/GraphicsEngine/interface/RenderPass.h
index e9f3027d..3f822e0c 100644
--- a/Graphics/GraphicsEngine/interface/RenderPass.h
+++ b/Graphics/GraphicsEngine/interface/RenderPass.h
@@ -311,6 +311,29 @@ struct SubpassDependencyDesc
/// A bitmask of ACCESS_FLAGS specifying a destination access mask.
ACCESS_FLAGS DstAccessMask DEFAULT_INITIALIZER(ACCESS_FLAG_NONE);
+
+#if DILIGENT_CPP_INTERFACE
+ /// Tests if two structures are equivalent
+
+ /// \param [in] RHS - reference to the structure to perform comparison with
+ /// \return
+ /// - True if all members of the two structures are equal.
+ /// - False otherwise
+ bool operator == (const SubpassDependencyDesc& RHS) const
+ {
+ return SrcSubpass == RHS.SrcSubpass &&
+ DstSubpass == RHS.DstSubpass &&
+ SrcStageMask == RHS.SrcStageMask &&
+ DstStageMask == RHS.DstStageMask &&
+ SrcAccessMask == RHS.SrcAccessMask &&
+ DstAccessMask == RHS.DstAccessMask;
+ }
+
+ bool operator != (const SubpassDependencyDesc& RHS) const
+ {
+ return !(*this == RHS);
+ }
+#endif
};
typedef struct SubpassDependencyDesc SubpassDependencyDesc;