diff options
Diffstat (limited to 'source')
| -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)]; |
