diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-02 05:32:11 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:13 +0000 |
| commit | 7b35bc8486edb3605876e16ee794bee8c7077bcf (patch) | |
| tree | c1067bf21aeb7f5379d2cecaf81b2c076e97c011 /Graphics/GraphicsEngineD3D12 | |
| parent | Fixed few issues with run-time sized arrays in D3D12; enabled test. (diff) | |
| download | DiligentCore-7b35bc8486edb3605876e16ee794bee8c7077bcf.tar.gz DiligentCore-7b35bc8486edb3605876e16ee794bee8c7077bcf.zip | |
RunTimeResourceArray: added constant buffers
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp index d6dff734..549f7065 100644 --- a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp @@ -634,6 +634,11 @@ void PipelineStateD3D12Impl::InitRootSignature(const PipelineStateCreateInfo& Cr "Compile the shader using SM5.1+ or change the resource layout to use only one space."); } +#ifdef DILIGENT_DEVELOPMENT + // Validate resources before remapping + DvpValidateShaderResources(pShader, pLocalRootSig); +#endif + CComPtr<ID3DBlob> pBlob; if (IsDXILBytecode(pBytecode->GetBufferPointer(), pBytecode->GetBufferSize())) { @@ -652,10 +657,6 @@ void PipelineStateD3D12Impl::InitRootSignature(const PipelineStateCreateInfo& Cr LOG_ERROR_AND_THROW("Failed to remap resource bindings in shader '", pShader->GetDesc().Name, "'."); } pBytecode = pBlob; - -#ifdef DILIGENT_DEVELOPMENT - DvpValidateShaderResources(pShader, pLocalRootSig); -#endif } } } |
