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/GraphicsEngineD3D12 | |
| 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/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp index 7e864b67..168736a0 100644 --- a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp @@ -100,7 +100,9 @@ PipelineStateD3D12Impl::PipelineStateD3D12Impl(IReferenceCounters* pR const auto* pShader = GetShader<const ShaderD3D12Impl>(s); pResources[s] = &(*pShader->GetShaderResources()); } - 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 |
