diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-09-18 20:57:37 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-09-18 20:57:37 +0000 |
| commit | 9599613c63f7b415c102a03fc406b4152c4858ef (patch) | |
| tree | d6b9b7e1fb8d651c568a52aa1f3363a9d7e8ff02 /Graphics/GraphicsEngineD3D12 | |
| parent | Fixed gcc/clang error (diff) | |
| download | DiligentCore-9599613c63f7b415c102a03fc406b4152c4858ef.tar.gz DiligentCore-9599613c63f7b415c102a03fc406b4152c4858ef.zip | |
Updated ShaderResourceBindingBase: using PSO implementation type for the pointers
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/ShaderResourceBindingD3D12Impl.hpp | 12 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/ShaderResourceBindingD3D12Impl.hpp b/Graphics/GraphicsEngineD3D12/include/ShaderResourceBindingD3D12Impl.hpp index 6906796f..5af1fb12 100644 --- a/Graphics/GraphicsEngineD3D12/include/ShaderResourceBindingD3D12Impl.hpp +++ b/Graphics/GraphicsEngineD3D12/include/ShaderResourceBindingD3D12Impl.hpp @@ -40,16 +40,18 @@ namespace Diligent { +class PipelineStateD3D12Impl; + /// Implementation of the Diligent::IShaderResourceBindingD3D12 interface // sizeof(ShaderResourceBindingD3D12Impl) == 152 (x64, msvc, Release) -class ShaderResourceBindingD3D12Impl final : public ShaderResourceBindingBase<IShaderResourceBindingD3D12> +class ShaderResourceBindingD3D12Impl final : public ShaderResourceBindingBase<IShaderResourceBindingD3D12, PipelineStateD3D12Impl> { public: - using TBase = ShaderResourceBindingBase<IShaderResourceBindingD3D12>; + using TBase = ShaderResourceBindingBase<IShaderResourceBindingD3D12, PipelineStateD3D12Impl>; - ShaderResourceBindingD3D12Impl(IReferenceCounters* pRefCounters, - class PipelineStateD3D12Impl* pPSO, - bool IsPSOInternal); + ShaderResourceBindingD3D12Impl(IReferenceCounters* pRefCounters, + PipelineStateD3D12Impl* pPSO, + bool IsPSOInternal); ~ShaderResourceBindingD3D12Impl(); virtual void DILIGENT_CALL_TYPE QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) override final; diff --git a/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp index 9f71e9c0..64bdb722 100644 --- a/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp @@ -109,7 +109,6 @@ void ShaderResourceBindingD3D12Impl::BindResources(Uint32 ShaderFlags, IResource { if (ShaderFlags & GetShaderTypeFromPipelineIndex(ShaderInd, PipelineType)) { - m_pShaderVarMgrs[ResLayoutInd].BindResources(pResMapping, Flags); } } |
