summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/compiler-core/slang-artifact-associated-impl.h1
-rw-r--r--source/slang/slang-ir-lower-dynamic-resource-heap.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/source/compiler-core/slang-artifact-associated-impl.h b/source/compiler-core/slang-artifact-associated-impl.h
index 6ae01626a..9f60c51b6 100644
--- a/source/compiler-core/slang-artifact-associated-impl.h
+++ b/source/compiler-core/slang-artifact-associated-impl.h
@@ -166,6 +166,7 @@ struct ShaderBindingRange
case slang::VaryingInput:
case slang::VaryingOutput:
case slang::SpecializationConstant:
+ case slang::SubElementRegisterSpace:
return true;
default:
return false;
diff --git a/source/slang/slang-ir-lower-dynamic-resource-heap.cpp b/source/slang/slang-ir-lower-dynamic-resource-heap.cpp
index b2199a174..495795cca 100644
--- a/source/slang/slang-ir-lower-dynamic-resource-heap.cpp
+++ b/source/slang/slang-ir-lower-dynamic-resource-heap.cpp
@@ -11,7 +11,7 @@ UInt findUnusedSpaceIndex(TargetProgram* targetProgram, IRModule* module)
auto processVarLayout = [&](IRVarLayout* varLayout)
{
UInt spaceOffset = 0;
- if (auto spaceAttr = varLayout->findOffsetAttr(LayoutResourceKind::RegisterSpace))
+ if (auto spaceAttr = varLayout->findOffsetAttr(LayoutResourceKind::SubElementRegisterSpace))
{
spaceOffset = spaceAttr->getOffset();
}