public void WriteInstruction(UInt16 size, Spv.Op instruction, UInt32 word0, UInt32 word1, UInt32 word2) { WriteInstruction(size, instruction); Write(word0); Write(word1); Write(word2); }
public void WriteInstruction(UInt16 size, Spv.Op instruction, List <UInt32> words) { Write(size, (UInt16)instruction); foreach (var word in words) { Write(word); } }
void WriteBasicOpNoResultId(ShaderOp op, Spv.Op spvOpType) { UInt16 totalSize = (UInt16)(1 + op.mParameters.Count); if (op.mResultType != null) { ++totalSize; } mWriter.WriteInstruction(totalSize, spvOpType); if (op.mResultType != null) { mWriter.Write(GetId(op.mResultType)); } WriteArgs(op.mParameters); }
public void WriteInstruction(UInt16 size, Spv.Op instruction) { Write(size, (UInt16)instruction); }