diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-02 05:32:11 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:13 +0000 |
| commit | 7b35bc8486edb3605876e16ee794bee8c7077bcf (patch) | |
| tree | c1067bf21aeb7f5379d2cecaf81b2c076e97c011 /Graphics/ShaderTools | |
| parent | Fixed few issues with run-time sized arrays in D3D12; enabled test. (diff) | |
| download | DiligentCore-7b35bc8486edb3605876e16ee794bee8c7077bcf.tar.gz DiligentCore-7b35bc8486edb3605876e16ee794bee8c7077bcf.zip | |
RunTimeResourceArray: added constant buffers
Diffstat (limited to 'Graphics/ShaderTools')
| -rw-r--r-- | Graphics/ShaderTools/src/DXCompiler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Graphics/ShaderTools/src/DXCompiler.cpp b/Graphics/ShaderTools/src/DXCompiler.cpp index fb2e82e0..681c7cb0 100644 --- a/Graphics/ShaderTools/src/DXCompiler.cpp +++ b/Graphics/ShaderTools/src/DXCompiler.cpp @@ -831,7 +831,12 @@ bool DXCompilerImpl::RemapResourceBindings(const TResourceBindingMap& ResourceMa { NameAndBinding.second.SrcBindPoint = ResDesc.BindPoint; NameAndBinding.second.SrcSpace = ResDesc.Space; - VERIFY_EXPR(ResDesc.BindCount == 0 || NameAndBinding.second.ArraySize >= ResDesc.BindCount); + // For some reason + // Texture2D g_Textures[] + // produces BindCount == 0, but + // ConstantBuffer<CBData> g_ConstantBuffers[] + // produces BindCount == UINT_MAX + VERIFY_EXPR(ResDesc.BindCount == 0 || ResDesc.BindCount == UINT_MAX || NameAndBinding.second.ArraySize >= ResDesc.BindCount); switch (ResDesc.Type) { |
