diff options
| author | Yong He <yonghe@outlook.com> | 2024-09-26 09:44:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 09:44:08 -0700 |
| commit | 5a0224a0773f6d7f5eae8515424af5fa8faa9c14 (patch) | |
| tree | ac14b54ad253d4ac5413a3c86254929f332b9e1a /source/slang/slang-ast-type.cpp | |
| parent | 7398e1e09312ed4e19195e060de9a2c9a073fcc1 (diff) | |
Move texture format inference to frontend and add reflection api for it. (#5155)
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;) |
