summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
-rw-r--r--source/slang/slang-ast-type.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp
index 616c2a67a..9f848ddc4 100644
--- a/source/slang/slang-ast-type.cpp
+++ b/source/slang/slang-ast-type.cpp
@@ -1216,6 +1216,11 @@ Val* TextureTypeBase::getSampleCount()
return as<Type>(_getGenericTypeArg(this, 4));
}
+Val* TextureTypeBase::getFormat()
+{
+ return as<Type>(_getGenericTypeArg(this, 8));
+}
+
Type* removeParamDirType(Type* type)
{
for (auto paramDirType = as<ParamDirectionType>(type); paramDirType;)