Esempio n. 1
0
 public void WriteInstruction(UInt16 size, Spv.Op instruction, UInt32 word0, UInt32 word1, UInt32 word2)
 {
     WriteInstruction(size, instruction);
     Write(word0);
     Write(word1);
     Write(word2);
 }
Esempio n. 2
0
 public void WriteInstruction(UInt16 size, Spv.Op instruction, List <UInt32> words)
 {
     Write(size, (UInt16)instruction);
     foreach (var word in words)
     {
         Write(word);
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public void WriteInstruction(UInt16 size, Spv.Op instruction)
 {
     Write(size, (UInt16)instruction);
 }