Esempio n. 1
0
 private void SetUp(OpFunctionCall op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType = treeBuilder.ResolveType(op.IdResultType);
     Function   = (Function)treeBuilder.GetNode(op.Function);
     Arguments  = treeBuilder.GetNodes(op.Arguments);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 2
0
 private void SetUp(OpAccessChain op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType = treeBuilder.ResolveType(op.IdResultType);
     Base       = treeBuilder.GetNode(op.Base);
     Indexes    = treeBuilder.GetNodes(op.Indexes);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 3
0
 private void SetUp(OpEntryPoint op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ExecutionModel = op.ExecutionModel;
     Value          = (Function)treeBuilder.GetNode(op.Value);
     Name           = op.Name;
     Interface      = treeBuilder.GetNodes(op.Interface);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 4
0
 private void SetUp(OpExtInst op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType  = treeBuilder.ResolveType(op.IdResultType);
     Set         = treeBuilder.GetNode(op.Set);
     Instruction = op.Instruction;
     Operands    = treeBuilder.GetNodes(op.Operands);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 5
0
 private void SetUp(OpEnqueueKernel op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType = treeBuilder.ResolveType(op.IdResultType);
     Queue      = treeBuilder.GetNode(op.Queue);
     Flags      = treeBuilder.GetNode(op.Flags);
     NDRange    = treeBuilder.GetNode(op.NDRange);
     NumEvents  = treeBuilder.GetNode(op.NumEvents);
     WaitEvents = treeBuilder.GetNode(op.WaitEvents);
     RetEvent   = treeBuilder.GetNode(op.RetEvent);
     Invoke     = treeBuilder.GetNode(op.Invoke);
     Param      = treeBuilder.GetNode(op.Param);
     ParamSize  = treeBuilder.GetNode(op.ParamSize);
     ParamAlign = treeBuilder.GetNode(op.ParamAlign);
     LocalSize  = treeBuilder.GetNodes(op.LocalSize);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 6
0
 private void SetUp(OpCompositeConstruct op, SpirvInstructionTreeBuilder treeBuilder)
 {
     ResultType   = treeBuilder.ResolveType(op.IdResultType);
     Constituents = treeBuilder.GetNodes(op.Constituents);
     SetUpDecorations(op, treeBuilder);
 }
Esempio n. 7
0
 private void SetUp(OpGroupDecorate op, SpirvInstructionTreeBuilder treeBuilder)
 {
     DecorationGroup = treeBuilder.GetNode(op.DecorationGroup);
     Targets         = treeBuilder.GetNodes(op.Targets);
     SetUpDecorations(op, treeBuilder);
 }