diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-28 17:49:14 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-28 17:49:14 +0000 |
| commit | 826fd40b949f074ee327d4d31c2eb1c68d6df448 (patch) | |
| tree | c6bf448a3d82ed583e0e5396bffe720c8d8ef131 /Graphics/GraphicsEngineD3D11 | |
| parent | Added Vulkan C API tests (diff) | |
| download | DiligentCore-826fd40b949f074ee327d4d31c2eb1c68d6df448.tar.gz DiligentCore-826fd40b949f074ee327d4d31c2eb1c68d6df448.zip | |
Reworked IShaderD3D::GetHLSLResource method to be compatible wit C
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rw-r--r-- | Graphics/GraphicsEngineD3D11/include/ShaderD3D11Impl.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/ShaderD3D11Impl.hpp b/Graphics/GraphicsEngineD3D11/include/ShaderD3D11Impl.hpp index 214bedca..34f6d48a 100644 --- a/Graphics/GraphicsEngineD3D11/include/ShaderD3D11Impl.hpp +++ b/Graphics/GraphicsEngineD3D11/include/ShaderD3D11Impl.hpp @@ -68,13 +68,13 @@ public: /// Implementation of IShader::GetResource() in Direct3D11 backend. virtual void GetResourceDesc(Uint32 Index, ShaderResourceDesc& ResourceDesc) const override final { - ResourceDesc = GetHLSLResource(Index); + ResourceDesc = m_pShaderResources->GetHLSLShaderResourceDesc(Index); } /// Implementation of IShaderD3D::GetHLSLResource() method. - virtual HLSLShaderResourceDesc GetHLSLResource(Uint32 Index) const override final + virtual void GetHLSLResource(Uint32 Index, HLSLShaderResourceDesc& ResourceDesc) const override final { - return m_pShaderResources->GetHLSLShaderResourceDesc(Index); + ResourceDesc = m_pShaderResources->GetHLSLShaderResourceDesc(Index); } /// Implementation of IShaderD3D11::GetD3D11Shader() method. |
