summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index 27aba435f..1c2726551 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -530,6 +530,13 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
matType->declRef = declRef;
return matType;
}
+ else if (magicMod->magicName == "TensorViewType")
+ {
+ SLANG_ASSERT(subst && subst->getArgs().getCount() == 1);
+ auto vecType = astBuilder->getOrCreate<TensorViewType>(ExtractGenericArgType(subst->getArgs()[0]));
+ vecType->declRef = declRef;
+ return vecType;
+ }
else if (magicMod->magicName == "Texture")
{
SLANG_ASSERT(subst && subst->getArgs().getCount() >= 1);