Ryujinx/Spv.Generator/Operand.cs
riperiperi 12dec18f39 Reduce allocations for Spir-v serialization
Passes BinaryWriter instead of the stream to Write and WriteOperand

- Removes creation of BinaryWriter for each instruction
- Removes allocations for literal string
2022-06-17 22:42:43 +01:00

14 lines
244 B
C#

using System;
using System.IO;
namespace Spv.Generator
{
public interface Operand : IEquatable<Operand>
{
OperandType Type { get; }
ushort WordCount { get; }
void WriteOperand(BinaryWriter writer);
}
}