mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 22:29:47 -06:00
rework FIFO crap so it can also be used for the GXFIFO crapo.
This commit is contained in:
21
GPU3D.cpp
21
GPU3D.cpp
@ -20,24 +20,41 @@
|
||||
#include <string.h>
|
||||
#include "NDS.h"
|
||||
#include "GPU.h"
|
||||
#include "FIFO.h"
|
||||
|
||||
|
||||
namespace GPU3D
|
||||
{
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 Command;
|
||||
u32 Param;
|
||||
|
||||
} CmdFIFOEntry;
|
||||
|
||||
FIFO<CmdFIFOEntry>* CmdFIFO;
|
||||
FIFO<CmdFIFOEntry>* CmdPIPE;
|
||||
|
||||
|
||||
bool Init()
|
||||
{
|
||||
CmdFIFO = new FIFO<CmdFIFOEntry>(256);
|
||||
CmdPIPE = new FIFO<CmdFIFOEntry>(4);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void DeInit()
|
||||
{
|
||||
//
|
||||
delete CmdFIFO;
|
||||
delete CmdPIPE;
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
//
|
||||
CmdFIFO->Clear();
|
||||
CmdPIPE->Clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user