Пример #1
0
 private void SetUp(OpFunction op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType      = treeBuilder.ResolveType(op.IdResultType);
     FunctionControl = op.FunctionControl;
     FunctionType    = treeBuilder.ResolveType(op.FunctionType);
     SetUpDecorations(op, treeBuilder);
 }
Пример #2
0
 public Operator(string token, OpFunction function, int arguments, Precedence precedence, bool leftAssociative = true)
 {
     Token           = token;
     Function        = function;
     Arguments       = arguments;
     Precedence      = precedence;
     LeftAssociative = leftAssociative;
 }
Пример #3
0
 public FunctionNode(OpFunction function)
 {
     Function = function;
 }