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/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D12') 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(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 -- cgit v1.2.3