summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-22 23:10:36 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-22 23:10:36 +0000
commitbc1f6a491532a470d001d0f5d945b5c1a4919ce9 (patch)
tree19efe72b55ec568c494e294554ffaea8401d471e /Graphics/GraphicsEngine
parentMoved vulkan-1.lib windows library to windows subfloder to have consistent di... (diff)
downloadDiligentCore-bc1f6a491532a470d001d0f5d945b5c1a4919ce9.tar.gz
DiligentCore-bc1f6a491532a470d001d0f5d945b5c1a4919ce9.zip
Added Rect::IsValid method
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h
index 46b48337..fef82b41 100644
--- a/Graphics/GraphicsEngine/interface/DeviceContext.h
+++ b/Graphics/GraphicsEngine/interface/DeviceContext.h
@@ -383,6 +383,11 @@ struct Rect
{}
Rect()noexcept{}
+
+ bool IsValid() const
+ {
+ return right > left && bottom > top;
+ }
};