mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-16 21:58:42 +02:00
33 lines
835 B
C#
33 lines
835 B
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
|
|
{
|
|
[Flags]
|
|
enum InstType
|
|
{
|
|
OpNullary = Op | 0,
|
|
OpUnary = Op | 1,
|
|
OpBinary = Op | 2,
|
|
OpBinaryCom = Op | 2 | Commutative,
|
|
OpTernary = Op | 3,
|
|
|
|
CallNullary = Call | 0,
|
|
CallUnary = Call | 1,
|
|
CallBinary = Call | 2,
|
|
CallTernary = Call | 3,
|
|
CallQuaternary = Call | 4,
|
|
|
|
// The atomic instructions have one extra operand,
|
|
// for the storage slot and offset pair.
|
|
AtomicBinary = Call | Atomic | 3,
|
|
AtomicTernary = Call | Atomic | 4,
|
|
|
|
Commutative = 1 << 8,
|
|
Op = 1 << 9,
|
|
Call = 1 << 10,
|
|
Atomic = 1 << 11,
|
|
Special = 1 << 12,
|
|
|
|
ArityMask = 0xff
|
|
}
|
|
} |