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

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

Inheritance diagram for CeresEngine::ShaderCompiler::SamplerDeclaration:
CeresEngine::ShaderCompiler::Declaration CeresEngine::ShaderCompiler::TypedAST CeresEngine::ShaderCompiler::AST

Public Member Functions

 SamplerDeclaration (const SourcePosition &astPos)
 
 SamplerDeclaration (const SourceArea &astArea)
 
Types getType () const override
 
void visit (Visitor *visitor, void *args=nullptr) override
 
TypeDenoterPtr deriveTypeDenoter (const TypeDenoter *expectedTypeDenoter) override
 
SamplerType getSamplerType () const
 
- Public Member Functions inherited from CeresEngine::ShaderCompiler::Declaration
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 ()
 
template<typename T >
Tas ()
 
template<typename T >
const Tas () const
 

Public Attributes

Vector< ArrayDimensionPtrarrayDimensions
 
Vector< RegisterPtrslotRegisters
 
String textureIdent
 
Vector< SamplerValuePtrsamplerValues
 
SamplerDeclarationStatementdeclarationStatementRef = nullptr
 
- Public Attributes inherited from CeresEngine::ShaderCompiler::Declaration
Identifier ident
 
- Public Attributes inherited from CeresEngine::ShaderCompiler::AST
SourceArea area
 
RawFlags flags
 

Static Public Attributes

static const Types classType = Types:: SamplerDeclaration
 

Additional Inherited Members

- Public Types inherited from CeresEngine::ShaderCompiler::Declaration
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 )) }
 
- 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)
 

Constructor & Destructor Documentation

◆ SamplerDeclaration() [1/2]

CeresEngine::ShaderCompiler::SamplerDeclaration::SamplerDeclaration ( const SourcePosition astPos)
inlineexplicit

◆ SamplerDeclaration() [2/2]

CeresEngine::ShaderCompiler::SamplerDeclaration::SamplerDeclaration ( const SourceArea astArea)
inlineexplicit

Member Function Documentation

◆ deriveTypeDenoter()

TypeDenoterPtr CeresEngine::ShaderCompiler::SamplerDeclaration::deriveTypeDenoter ( const TypeDenoter expectedTypeDenoter)
overridevirtual

◆ getSamplerType()

SamplerType CeresEngine::ShaderCompiler::SamplerDeclaration::getSamplerType ( ) const

◆ getType()

Types CeresEngine::ShaderCompiler::SamplerDeclaration::getType ( ) const
inlineoverridevirtual

◆ visit()

void CeresEngine::ShaderCompiler::SamplerDeclaration::visit ( Visitor visitor,
void args = nullptr 
)
inlineoverridevirtual

Member Data Documentation

◆ arrayDimensions

Vector<ArrayDimensionPtr> CeresEngine::ShaderCompiler::SamplerDeclaration::arrayDimensions

◆ classType

const Types CeresEngine::ShaderCompiler::SamplerDeclaration::classType = Types:: SamplerDeclaration
static

◆ declarationStatementRef

SamplerDeclarationStatement* CeresEngine::ShaderCompiler::SamplerDeclaration::declarationStatementRef = nullptr

◆ samplerValues

Vector<SamplerValuePtr> CeresEngine::ShaderCompiler::SamplerDeclaration::samplerValues

◆ slotRegisters

Vector<RegisterPtr> CeresEngine::ShaderCompiler::SamplerDeclaration::slotRegisters

◆ textureIdent

String CeresEngine::ShaderCompiler::SamplerDeclaration::textureIdent

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