summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-17 16:20:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-17 16:20:09 +0000
commiteb129d6308eaca88131656fd58124355cb1b391a (patch)
tree5335bb16ba10f6aa26d436b6d47318fc5fde9f16 /Graphics/GraphicsEngine
parentImplementing device context in vulkan (diff)
downloadDiligentCore-eb129d6308eaca88131656fd58124355cb1b391a.tar.gz
DiligentCore-eb129d6308eaca88131656fd58124355cb1b391a.zip
Added template version of RawPtr function to allow more convenient type conversion
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/DeviceContextBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.h b/Graphics/GraphicsEngine/include/DeviceContextBase.h
index 8099afc7..a586d393 100644
--- a/Graphics/GraphicsEngine/include/DeviceContextBase.h
+++ b/Graphics/GraphicsEngine/include/DeviceContextBase.h
@@ -262,7 +262,7 @@ inline bool DeviceContextBase<BaseInterface> :: CommitShaderResources(IShaderRes
if (pShaderResourceBinding)
{
- auto *pPSOImpl = ValidatedCast<PSOImplType>(m_pPipelineState.RawPtr());
+ auto *pPSOImpl = m_pPipelineState.RawPtr<PSOImplType>();
if (pPSOImpl->IsIncompatibleWith(pShaderResourceBinding->GetPipelineState()))
{
LOG_ERROR_MESSAGE("Shader resource binding object is not compatible with the currently bound pipeline state");