summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 07c8b0cba..aec3b463b 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -5946,6 +5946,11 @@ namespace Slang
return isIntegerBaseType(baseType) || baseType == BaseType::Bool;
}
+ bool SemanticsVisitor::isValidCompileTimeConstantType(Type* type)
+ {
+ return isScalarIntegerType(type) || isEnumType(type);
+ }
+
bool SemanticsVisitor::isIntValueInRangeOfType(IntegerLiteralValue value, Type* type)
{
auto basicType = as<BasicExpressionType>(type);