mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 21:46:40 +00:00
27 lines
761 B
C#
27 lines
761 B
C#
|
using Ryujinx.Graphics.Shader.Instructions;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Shader.Decoders
|
||
|
{
|
||
|
readonly struct InstOp
|
||
|
{
|
||
|
public readonly ulong Address;
|
||
|
public readonly ulong RawOpCode;
|
||
|
public readonly InstEmitter Emitter;
|
||
|
public readonly InstProps Props;
|
||
|
public readonly InstName Name;
|
||
|
|
||
|
public InstOp(ulong address, ulong rawOpCode, InstName name, InstEmitter emitter, InstProps props)
|
||
|
{
|
||
|
Address = address;
|
||
|
RawOpCode = rawOpCode;
|
||
|
Name = name;
|
||
|
Emitter = emitter;
|
||
|
Props = props;
|
||
|
}
|
||
|
|
||
|
public ulong GetAbsoluteAddress()
|
||
|
{
|
||
|
return (ulong)((long)Address + (((int)(RawOpCode >> 20) << 8) >> 8) + 8);
|
||
|
}
|
||
|
}
|
||
|
}
|