Blender V5.0
blender::gpu::shader::parser Namespace Reference

Classes

struct  IndexRange
struct  OffsetIndices
struct  ParserData
struct  Token
struct  Scope
struct  Parser

Enumerations

enum  TokenType : char {
  Invalid = 0 , Word = 'w' , NewLine = '\n' , Space = ' ' ,
  Dot = '.' , Hash = '#' , Ampersand = '&' , Number = '0' ,
  String = '_' , ParOpen = '(' , ParClose = ')' , BracketOpen = '{' ,
  BracketClose = '}' , SquareOpen = '[' , SquareClose = ']' , AngleOpen = '<' ,
  AngleClose = '>' , Assign = '=' , SemiColon = ';' , Question = '?' ,
  Not = '!' , Colon = ':' , Comma = ',' , Star = '*' ,
  Plus = '+' , Minus = '-' , Divide = '/' , Tilde = '~' ,
  Backslash = '\\' , Break = 'b' , Const = 'c' , Constexpr = 'C' ,
  Decrement = 'D' , Deref = 'D' , Do = 'd' , Equal = 'E' ,
  NotEqual = 'e' , For = 'f' , While = 'F' , GEqual = 'G' ,
  Case = 'H' , Switch = 'h' , Else = 'I' , If = 'i' ,
  LEqual = 'L' , Enum = 'M' , Static = 'm' , Namespace = 'n' ,
  PreprocessorNewline = 'N' , Continue = 'O' , Increment = 'P' , Return = 'r' ,
  Class = 'S' , Struct = 's' , Template = 't' , This = 'T' ,
  Using = 'u' , Private = 'v' , Public = 'V'
}
enum class  ScopeType : char {
  Global = 'G' , Namespace = 'N' , Struct = 'S' , Function = 'F' ,
  LoopArgs = 'l' , LoopBody = 'p' , SwitchArg = 'w' , SwitchBody = 'W' ,
  FunctionArgs = 'f' , FunctionCall = 'c' , Template = 'T' , TemplateArg = 't' ,
  Subscript = 'A' , Preprocessor = 'P' , Assignment = 'a' , Local = 'L' ,
  FunctionArg = 'g' , LoopArg = 'r'
}

Enumeration Type Documentation

◆ ScopeType

enum class blender::gpu::shader::parser::ScopeType : char
strong
Enumerator
Global 
Namespace 
Struct 
Function 
LoopArgs 
LoopBody 
SwitchArg 
SwitchBody 
FunctionArgs 
FunctionCall 
Template 
TemplateArg 
Subscript 
Preprocessor 
Assignment 
Local 
FunctionArg 
LoopArg 

Definition at line 112 of file shader_parser.hh.

◆ TokenType

Enumerator
Invalid 
Word 
NewLine 
Space 
Dot 
Hash 
Ampersand 
Number 
String 
ParOpen 
ParClose 
BracketOpen 
BracketClose 
SquareOpen 
SquareClose 
AngleOpen 
AngleClose 
Assign 
SemiColon 
Question 
Not 
Colon 
Comma 
Star 
Plus 
Minus 
Divide 
Tilde 
Backslash 
Break 
Const 
Constexpr 
Decrement 
Deref 
Do 
Equal 
NotEqual 
For 
While 
GEqual 
Case 
Switch 
Else 
If 
LEqual 
Enum 
Static 
Namespace 
PreprocessorNewline 
Continue 
Increment 
Return 
Class 
Struct 
Template 
This 
Using 
Private 
Public 

Definition at line 48 of file shader_parser.hh.