CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShaderCompiler::Declaration Struct Reference

#include <CeresEngine/Material/ShaderCompiler/AST/AST.hpp>

Inheritance diagram for CeresEngine::ShaderCompiler::Declaration:
CeresEngine::ShaderCompiler::TypedAST CeresEngine::ShaderCompiler::AST CeresEngine::ShaderCompiler::AliasDeclaration CeresEngine::ShaderCompiler::BufferDeclaration CeresEngine::ShaderCompiler::FunctionDeclaration CeresEngine::ShaderCompiler::SamplerDeclaration CeresEngine::ShaderCompiler::StructDeclaration CeresEngine::ShaderCompiler::UniformBufferDeclaration CeresEngine::ShaderCompiler::VarDeclaration

Public Types

enum  : UInt32 { isWrittenTo = (1u << ( 0 )) , isReadFrom = (1u << ( 1 )) }
 
- Public Types inherited from CeresEngine::ShaderCompiler::AST
enum class  Types {
  Program , CodeBlock , Attribute , SwitchCase ,
  SamplerValue , Register , PackOffset , ArrayDimension ,
  TypeSpecifier , VarDeclaration , BufferDeclaration , SamplerDeclaration ,
  StructDeclaration , AliasDeclaration , FunctionDeclaration , UniformBufferDeclaration ,
  VarDeclarationStatement , BufferDeclarationStatement , SamplerDeclarationStatement , AliasDeclarationStatement ,
  BasicDeclarationStatement , NullStatement , CodeBlockStatement , ForLoopStatement ,
  WhileLoopStatement , DoWhileLoopStatement , IfStatement , ElseStatement ,
  SwitchStatement , ExpressionStatement , ReturnStatement , CtrlTransferStatement ,
  LayoutStatement , NullExpression , SequenceExpression , LiteralExpression ,
  TypeSpecifierExpression , TernaryExpression , BinaryExpression , UnaryExpression ,
  PostUnaryExpression , CallExpression , BracketExpression , ObjectExpression ,
  AssignExpression , ArrayExpression , CastExpression , InitializerExpression
}
 
enum  : UInt32 { isReachable = (1u << ( 30 )) , isDeadCode = (1u << ( 29 )) , isBuiltin = (1u << ( 28 )) }
 

Public Member Functions

virtual String toString () const
 
virtual TypeSpecifierfetchTypeSpecifier () const
 
bool isAnonymous () const
 
- Public Member Functions inherited from CeresEngine::ShaderCompiler::TypedAST
const TypeDenoterPtrgetTypeDenoter (const TypeDenoter *expectedTypeDenoter=nullptr)
 
void resetTypeDenoter ()
 
- Public Member Functions inherited from CeresEngine::ShaderCompiler::AST
virtual ~AST ()
 
virtual Types getType () const =0
 
virtual void visit (Visitor *visitor, void *args=nullptr)=0
 
template<typename T >
Tas ()
 
template<typename T >
const Tas () const
 

Public Attributes

Identifier ident
 
- Public Attributes inherited from CeresEngine::ShaderCompiler::AST
SourceArea area
 
RawFlags flags
 

Additional Inherited Members

- Static Public Member Functions inherited from CeresEngine::ShaderCompiler::AST
template<typename T >
static TgetAs (AST *ast)
 
template<typename T >
static const TgetAs (const AST *ast)
 
- Protected Member Functions inherited from CeresEngine::ShaderCompiler::TypedAST
virtual TypeDenoterPtr deriveTypeDenoter (const TypeDenoter *expectedTypeDenoter)=0
 

Member Enumeration Documentation

◆ anonymous enum

Enumerator
isWrittenTo 
isReadFrom 

Member Function Documentation

◆ fetchTypeSpecifier()

virtual TypeSpecifier * CeresEngine::ShaderCompiler::Declaration::fetchTypeSpecifier ( ) const
virtual

◆ isAnonymous()

bool CeresEngine::ShaderCompiler::Declaration::isAnonymous ( ) const

◆ toString()

Member Data Documentation

◆ ident

Identifier CeresEngine::ShaderCompiler::Declaration::ident

The documentation for this struct was generated from the following file: