diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-26 06:15:30 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-26 06:15:30 +0000 |
| commit | d066eca3eb7d60701a3cd5dc9159136ba233902e (patch) | |
| tree | 435510cde28558b799fef748fbd495442ed8b490 /Graphics/GraphicsEngineD3DBase | |
| parent | Updated shader C interface; added test. (diff) | |
| download | DiligentCore-d066eca3eb7d60701a3cd5dc9159136ba233902e.tar.gz DiligentCore-d066eca3eb7d60701a3cd5dc9159136ba233902e.zip | |
Reworked IShaderResourceVariable::GetResourceDesc() method to be compatible with C
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/ShaderVariableD3DBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/ShaderVariableD3DBase.h b/Graphics/GraphicsEngineD3DBase/include/ShaderVariableD3DBase.h index d47150f4..3c566b20 100644 --- a/Graphics/GraphicsEngineD3DBase/include/ShaderVariableD3DBase.h +++ b/Graphics/GraphicsEngineD3DBase/include/ShaderVariableD3DBase.h @@ -65,9 +65,9 @@ struct ShaderVariableD3DBase : public ShaderVariableBase<TShaderResourceLayout, return m_VariableType; } - virtual ShaderResourceDesc GetResourceDesc() const override final + virtual void GetResourceDesc(ShaderResourceDesc& ResourceDesc) const override final { - return GetHLSLResourceDesc(); + ResourceDesc = GetHLSLResourceDesc(); } virtual HLSLShaderResourceDesc GetHLSLResourceDesc() const override final |
