diff options
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
| -rw-r--r-- | source/slang/slang-ast-type.cpp | 5 |
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;) |
