diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 16:22:49 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 16:22:49 +0000 |
| commit | f4e4764228e2c5311efee1b40774881ef33f2de1 (patch) | |
| tree | 1b0b09e7cafb1ddb68f0fbb0106853a01a6a4cbb /Graphics/GraphicsEngineD3D12 | |
| parent | Fixed texture usage checks to avoid false warnings in OpenGL (diff) | |
| download | DiligentCore-f4e4764228e2c5311efee1b40774881ef33f2de1.tar.gz DiligentCore-f4e4764228e2c5311efee1b40774881ef33f2de1.zip | |
Fixed debug check in ShaderResourceBindingD3D12Impl::InitializeStaticResources()
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp index dd8eab14..efcdf3bc 100644 --- a/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/ShaderResourceBindingD3D12Impl.cpp @@ -157,7 +157,7 @@ void ShaderResourceBindingD3D12Impl::dvpVerifyResourceBindings(const PipelineSta void ShaderResourceBindingD3D12Impl::InitializeStaticResources(const PipelineStateD3D12Impl* pPSO) { VERIFY(!StaticResourcesInitialized(), "Static resources have already been initialized"); - VERIFY(pPSO == GetPipelineState(), "Invalid pipeline state provided"); + VERIFY(pPSO->IsCompatibleWith(GetPipelineState()), "Currently bound pipeline state is not compatible with this SRB"); auto NumShaders = pPSO->GetNumShaders(); auto ppShaders = pPSO->GetShaders(); |
