diff options
Diffstat (limited to 'source/slang/parameter-binding.cpp')
| -rw-r--r-- | source/slang/parameter-binding.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp index 01727fb36..007c023e2 100644 --- a/source/slang/parameter-binding.cpp +++ b/source/slang/parameter-binding.cpp @@ -1342,8 +1342,9 @@ void generateParameterBindings( { auto globalConstantBufferLayout = createParameterBlockTypeLayout( nullptr, - globalScopeStructLayout, - globalScopeRules); + globalScopeRules, + globalScopeRules->GetObjectLayout(ShaderParameterKind::ConstantBuffer), + globalScopeStructLayout); globalScopeLayout = globalConstantBufferLayout; } |
