summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index 9acdadad6..9025c545a 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -294,6 +294,17 @@ void Type::accept(IValVisitor* visitor, void* extra)
declRef)->As<PtrType>();
}
+ RefPtr<ArrayExpressionType> Session::getArrayType(
+ Type* elementType,
+ IntVal* elementCount)
+ {
+ RefPtr<ArrayExpressionType> arrayType = new ArrayExpressionType();
+ arrayType->baseType = elementType;
+ arrayType->ArrayLength = elementCount;
+ return arrayType;
+ }
+
+
RefPtr<GroupSharedType> Session::getGroupSharedType(RefPtr<Type> valueType)
{
RefPtr<GroupSharedType> groupSharedType = new GroupSharedType();
@@ -641,8 +652,9 @@ void Type::accept(IValVisitor* visitor, void* extra)
CASE(ConstantBuffer, ConstantBufferType)
CASE(TextureBuffer, TextureBufferType)
- CASE(GLSLInputParameterBlockType, GLSLInputParameterBlockType)
- CASE(GLSLOutputParameterBlockType, GLSLOutputParameterBlockType)
+ CASE(ParameterBlockType, ParameterBlockType)
+ CASE(GLSLInputParameterGroupType, GLSLInputParameterGroupType)
+ CASE(GLSLOutputParameterGroupType, GLSLOutputParameterGroupType)
CASE(GLSLShaderStorageBufferType, GLSLShaderStorageBufferType)
CASE(HLSLStructuredBufferType, HLSLStructuredBufferType)