コード例 #1
0
ファイル: ISpirvSink.cs プロジェクト: ClintKilmer/CKGL.VK
 /// <summary>
 /// Output an SPIR-V statement with the specified opcode and operands
 /// arguments.
 /// </summary>
 /// <param name="sink">
 /// The sink to which to output the statement.
 /// </param>
 /// <param name="op">
 /// The opcode of the statement to output.
 /// </param>
 /// <param name="operands">
 /// A list of operand arguments to include in the output statement.
 /// </param>
 public static void AddStatement(this ISpirvSink sink, Op op, params object[] operands)
 {
     sink.AddStatement(null, new SpirvStatement(op, operands));
 }
コード例 #2
0
ファイル: ISpirvSink.cs プロジェクト: ClintKilmer/CKGL.VK
 /// <summary>
 /// Output an SPIR-V statement with the specified opcode, ResultID and operands
 /// arguments.
 /// </summary>
 /// <param name="sink">
 /// The sink to which to output the statement.
 /// </param>
 /// <param name="resultId">
 /// A ResultId representing the result of this statement.
 /// </param>
 /// <param name="op">
 /// The opcode of the statement to output.
 /// </param>
 /// <param name="operands">
 /// A list of operand arguments to include in the output statement.
 /// </param>
 public static void AddStatement(this ISpirvSink sink, ResultId resultId, Op op, params object[] operands)
 {
     sink.AddStatement(resultId, new SpirvStatement(op, operands));
 }
コード例 #3
0
ファイル: ISpirvSink.cs プロジェクト: ClintKilmer/CKGL.VK
 /// <summary>
 /// Output the specified statement
 /// </summary>
 /// <param name="sink">
 /// The sink to which to output the statement.
 /// </param>
 /// <param name="statement">
 /// The SPIR-V statement to output to this sink instance.
 /// </param>
 public static void AddStatement(this ISpirvSink sink, SpirvStatement statement)
 {
     sink.AddStatement(null, statement);
 }