diff options
| author | Sam Estep <sam@samestep.com> | 2025-08-05 00:19:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-05 04:19:07 +0000 |
| commit | de6a87a86d941794f0c2018dcdf04b7c94fb4038 (patch) | |
| tree | 9cc4cf53964855f70f11a6c8f3d8ce60aa58f95c /source/slang | |
| parent | ce53e9c6703708bc85b0b1a0872620a7725c5a45 (diff) | |
Add missing `ASTBuilder` methods for int types (#8056)
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-ast-builder.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/slang/slang-ast-builder.h b/source/slang/slang-ast-builder.h index 5990f90f1..5944b5e31 100644 --- a/source/slang/slang-ast-builder.h +++ b/source/slang/slang-ast-builder.h @@ -447,6 +447,14 @@ public: { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Double)]; } + SLANG_FORCE_INLINE Type* getInt8Type() + { + return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Int8)]; + } + SLANG_FORCE_INLINE Type* getInt16Type() + { + return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Int16)]; + } SLANG_FORCE_INLINE Type* getIntType() { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Int)]; @@ -459,6 +467,14 @@ public: { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::IntPtr)]; } + SLANG_FORCE_INLINE Type* getUInt8Type() + { + return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::UInt8)]; + } + SLANG_FORCE_INLINE Type* getUInt16Type() + { + return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::UInt16)]; + } SLANG_FORCE_INLINE Type* getUIntType() { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::UInt)]; @@ -471,6 +487,10 @@ public: { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::UIntPtr)]; } + SLANG_FORCE_INLINE Type* getCharType() + { + return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Char)]; + } SLANG_FORCE_INLINE Type* getVoidType() { return m_sharedASTBuilder->m_builtinTypes[Index(BaseType::Void)]; |
