summaryrefslogtreecommitdiffstats
path: root/source/slang/reflection.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-10 10:58:47 -0700
committerGitHub <noreply@github.com>2017-07-10 10:58:47 -0700
commit3c92fedbb73f76f3418630069c880bdc8aedccb4 (patch)
treee220ec5f54e5a5970a2307a87891a301d35f1546 /source/slang/reflection.cpp
parent8abdf2dddd10feb9794c86cdf6b2159a2b6383e4 (diff)
parentd6d49eac224a0d03c8f941deb59ee1520ff0ab5e (diff)
Merge pull request #66 from tfoleyNV/falcor-work
Falcor work
Diffstat (limited to 'source/slang/reflection.cpp')
-rw-r--r--source/slang/reflection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/reflection.cpp b/source/slang/reflection.cpp
index eb27df398..08621d9a3 100644
--- a/source/slang/reflection.cpp
+++ b/source/slang/reflection.cpp
@@ -148,6 +148,11 @@ SLANG_API SlangTypeKind spReflectionType_GetKind(SlangReflectionType* inType)
return SLANG_TYPE_KIND_STRUCT;
}
}
+ else if (auto errorType = type->As<ErrorType>())
+ {
+ // This means we saw a type we didn't understand in the user's code
+ return SLANG_TYPE_KIND_NONE;
+ }
assert(!"unexpected");
return SLANG_TYPE_KIND_NONE;