diff options
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index d207b45bf..aa11b1b0f 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -491,6 +491,14 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt textureType->declRef = declRef; return textureType; } + else if (magicMod->name == "FeedbackType") + { + SLANG_ASSERT(subst == nullptr); + auto type = astBuilder->create<FeedbackType>(); + type->declRef = declRef; + type->kind = FeedbackType::Kind(magicMod->tag); + return type; + } // TODO: eventually everything should follow this pattern, // and we can drive the dispatch with a table instead |
