summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 71d323c9e..be6112abe 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -2054,6 +2054,10 @@ struct EmitVisitor
{
type = ptrType->getValueType();
}
+ while (auto ptrType = as<IRArrayTypeBase>(type))
+ {
+ type = ptrType->getElementType();
+ }
if(as<IRUniformParameterGroupType>(type))
{