From c8bdcc78df5434b4d53bd1f955d851e2983f9960 Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 31 Mar 2020 22:42:18 -0700 Subject: Enabled using PSO_CREATE_FLAGS flags in D3D11, D3D12 and Vk backends. --- Graphics/GraphicsEngineD3D11/src/PipelineStateD3D11Impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D11') 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(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 -- cgit v1.2.3