mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-21 00:23:36 +00:00
Passes BinaryWriter instead of the stream to Write and WriteOperand - Removes creation of BinaryWriter for each instruction - Removes allocations for literal string
14 lines
244 B
C#
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);
|
|
}
|
|
}
|