From 17062f3e3e96412ef8b1a5b68b993767806d6615 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 1 Mar 2021 20:41:41 -0800 Subject: Fixed few issues with run-time sized arrays in D3D12; enabled test. --- Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp index 0db2d4ac..d6dff734 100644 --- a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp @@ -746,7 +746,7 @@ void PipelineStateD3D12Impl::DvpValidateShaderResources(const ShaderD3D12Impl* p if (Attribs.BindCount == 0) { - if ((ResDesc.Flags & PIPELINE_RESOURCE_FLAG_RUNTIME_ARRAY) != 0) + if ((ResDesc.Flags & PIPELINE_RESOURCE_FLAG_RUNTIME_ARRAY) == 0) { LOG_ERROR_AND_THROW("Shader '", pShader->GetDesc().Name, "' contains resource with name '", Attribs.Name, "' that is runtime-sized array, but in resource signature '", pSignature->GetDesc().Name, -- cgit v1.2.3