diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-03 21:00:00 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-03 21:00:00 +0000 |
| commit | f1d382b62d674616de7979f5f3d78f74ea31f0e0 (patch) | |
| tree | d689db652dd2bb9fd80d1a474914679a4ba05af9 /Graphics/GraphicsEngine | |
| parent | Few fixes to render passes (diff) | |
| download | DiligentCore-f1d382b62d674616de7979f5f3d78f74ea31f0e0.tar.gz DiligentCore-f1d382b62d674616de7979f5f3d78f74ea31f0e0.zip | |
Added comparison opertors to SubpassDependencyDesc struct
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/RenderPass.h | 23 |
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; |
