diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-01 05:42:18 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-01 05:42:18 +0000 |
| commit | c8bdcc78df5434b4d53bd1f955d851e2983f9960 (patch) | |
| tree | 2577b72545c35a96fa89da434a41d126e3b0d6f3 /Graphics/GraphicsEngineD3D11 | |
| parent | Fixed Metal build error (diff) | |
| download | DiligentCore-c8bdcc78df5434b4d53bd1f955d851e2983f9960.tar.gz DiligentCore-c8bdcc78df5434b4d53bd1f955d851e2983f9960.zip | |
Enabled using PSO_CREATE_FLAGS flags in D3D11, D3D12 and Vk backends.
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rw-r--r-- | Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp index 0f5f6e07..3b787039 100644 --- a/Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp @@ -139,7 +139,9 @@ PipelineStateD3D11Impl::PipelineStateD3D11Impl(IReferenceCounters* pR auto* pShader = GetShader<const ShaderD3D11Impl>(s); pResources[s] = &(*pShader->GetD3D11Resources()); } - ShaderResources::DvpVerifyResourceLayout(ResourceLayout, pResources, m_NumShaders); + ShaderResources::DvpVerifyResourceLayout(ResourceLayout, pResources, m_NumShaders, + (CreateInfo.Flags & PSO_CREATE_FLAG_IGNORE_MISSING_VARIABLES) == 0, + (CreateInfo.Flags & PSO_CREATE_FLAG_IGNORE_MISSING_STATIC_SAMPLERS) == 0); } #endif |
