using Ryujinx.Graphics.Device;
using System;
using System.Collections.Generic;
namespace Ryujinx.Graphics.Gpu.Engine.MME
{
/// <summary>
/// FIFO word.
/// </summary>
struct FifoWord
/// GPU virtual address where the word is located in memory.
public ulong GpuVa { get; }
/// Word value.
public int Word { get; }
/// Creates a new FIFO word.
/// <param name="gpuVa">GPU virtual address where the word is located in memory</param>
/// <param name="word">Word value</param>
public FifoWord(ulong gpuVa, int word)
GpuVa = gpuVa;
Word = word;
}
/// Macro Execution Engine interface.
interface IMacroEE
/// Arguments FIFO.
Queue<FifoWord> Fifo { get; }
/// Should execute the GPU Macro code being passed.
/// <param name="code">Code to be executed</param>
/// <param name="state">GPU state at the time of the call</param>
/// <param name="arg0">First argument to be passed to the GPU Macro</param>
void Execute(ReadOnlySpan<int> code, IDeviceState state, int arg0);