ShaderCompiler::Expr struct

One expression-tree node; the type-free shape shared by the AST-based lowerings.

Public variables

ExprKind Kind
Node kind.
String Text
Literal text / identifier / member field / callee name / operator.
bool Postfix
Unary only: x++/x-- (operator follows the operand) vs. a prefix ++x.
std::unique_ptr<Expr> A
Operands (Index: A = base, B = index; Conditional: A ? B : C).
std::unique_ptr<Expr> B
std::unique_ptr<Expr> C
std::vector<std::unique_ptr<Expr>> Args
Call/constructor arguments.