diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-10 11:18:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 11:18:58 -0700 |
| commit | 33b4fa725f6410eee5013de465c14a4cb523b057 (patch) | |
| tree | 6a20231d9585b5c8261cbe1edc8d168c3bdce6be /source/slang/slang-type-layout.cpp | |
| parent | 42764b76bb788c3859031bda780d63cef4c783e0 (diff) | |
Fix typelayout for append/consume structured buffers. (#3924)
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
| -rw-r--r-- | source/slang/slang-type-layout.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp index 195e14d79..e791efadb 100644 --- a/source/slang/slang-type-layout.cpp +++ b/source/slang/slang-type-layout.cpp @@ -2843,14 +2843,10 @@ createStructuredBufferWithCounterTypeLayout( for(auto& typeResourceInfo : typeLayout->resourceInfos) { - const auto counterResourceInfo + auto counterResourceInfo = counterVarLayout->findOrAddResourceInfo(typeResourceInfo.kind); - const auto counterTypeResourceInfo - = counterVarLayout->getTypeLayout()->FindResourceInfo(typeResourceInfo.kind); // We expect this index to be 1 counterResourceInfo->index = typeResourceInfo.count.getFiniteValue(); - // likewise - typeResourceInfo.count += counterTypeResourceInfo->count; } typeLayout->counterVarLayout = counterVarLayout; |
