diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-17 16:20:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-17 16:20:09 +0000 |
| commit | eb129d6308eaca88131656fd58124355cb1b391a (patch) | |
| tree | 5335bb16ba10f6aa26d436b6d47318fc5fde9f16 /Graphics/GraphicsEngine | |
| parent | Implementing device context in vulkan (diff) | |
| download | DiligentCore-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.h | 2 |
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"); |
