summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2021-01-15 23:56:25 +0000
committerazhirnov <zh1dron@gmail.com>2021-01-15 23:56:25 +0000
commit8a3b697948704337d08af7bea93627f5e647899e (patch)
tree852d3b0f7ea9fa9fa0ffcf2df81a5a5472371183 /Common/interface
parentIBufferSuballocation: added SetUserData()/GetUserData() methods (diff)
downloadDiligentCore-8a3b697948704337d08af7bea93627f5e647899e.tar.gz
DiligentCore-8a3b697948704337d08af7bea93627f5e647899e.zip
added pipeline resource signature (wip)
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/RefCntAutoPtr.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/interface/RefCntAutoPtr.hpp b/Common/interface/RefCntAutoPtr.hpp
index d8265366..2b89ffe8 100644
--- a/Common/interface/RefCntAutoPtr.hpp
+++ b/Common/interface/RefCntAutoPtr.hpp
@@ -31,7 +31,7 @@
#include "../../Platforms/interface/Atomics.hpp"
#include "ValidatedCast.hpp"
#include "RefCountedObjectImpl.hpp"
-
+#include "CompilerDefinitions.h"
namespace Diligent
{
@@ -136,7 +136,7 @@ public:
m_pObject = pObj;
}
- T* Detach() noexcept
+ NODISCARD T* Detach() noexcept
{
T* pObj = m_pObject;
m_pObject = nullptr;