diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-26 06:31:42 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-26 06:31:42 +0000 |
| commit | 6866e442b789df5c15693c2d38ae6abc740c5bd2 (patch) | |
| tree | 883c4cc8d9fa394ba0cda3a850145662b7bf53a6 /Graphics/GraphicsEngineD3D12 | |
| parent | Reworked IShaderResourceVariable::GetResourceDesc() method to be compatible w... (diff) | |
| download | DiligentCore-6866e442b789df5c15693c2d38ae6abc740c5bd2.tar.gz DiligentCore-6866e442b789df5c15693c2d38ae6abc740c5bd2.zip | |
Reworked IShader::GetResource to be compatible with C; renamed the method to GetResourceDesc
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/ShaderD3D12Impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/ShaderD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/ShaderD3D12Impl.h index d76111af..a5be1a03 100644 --- a/Graphics/GraphicsEngineD3D12/include/ShaderD3D12Impl.h +++ b/Graphics/GraphicsEngineD3D12/include/ShaderD3D12Impl.h @@ -63,9 +63,9 @@ public: } /// Implementation of IShader::GetResource() in Direct3D12 backend. - virtual ShaderResourceDesc GetResource(Uint32 Index) const override final + virtual void GetResourceDesc(Uint32 Index, ShaderResourceDesc& ResourceDesc) const override final { - return GetHLSLResource(Index); + ResourceDesc = GetHLSLResource(Index); } /// Implementation of IShaderD3D::GetHLSLResource() in Direct3D12 backend. |
