summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-03-02 04:41:41 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-03-19 00:38:13 +0000
commit17062f3e3e96412ef8b1a5b68b993767806d6615 (patch)
tree2a61084cfc1a07c9d52cb163c128401deebad022 /Graphics/GraphicsEngineD3D12
parentAdded resource signature creation failure test; fxied validation of resource ... (diff)
downloadDiligentCore-17062f3e3e96412ef8b1a5b68b993767806d6615.tar.gz
DiligentCore-17062f3e3e96412ef8b1a5b68b993767806d6615.zip
Fixed few issues with run-time sized arrays in D3D12; enabled test.
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp2
1 files changed, 1 insertions, 1 deletions
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,