MCPcopy Create free account
hub / github.com/devkitPro/libctru / GX_FlushCacheRegions

Function GX_FlushCacheRegions

libctru/source/gpu/gx.c:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105Result GX_FlushCacheRegions(u32* buf0a, u32 buf0s, u32* buf1a, u32 buf1s, u32* buf2a, u32 buf2s)
106{
107 u32 gxCommand[0x8];
108 gxCommand[0]=0x00000100 | 0x05; //CommandID
109 gxCommand[1]=(u32)buf0a; //buf0 address
110 gxCommand[2]=(u32)buf0s; //buf0 size
111 gxCommand[3]=(u32)buf1a; //buf1 address
112 gxCommand[4]=(u32)buf1s; //buf1 size
113 gxCommand[5]=(u32)buf2a; //buf2 address
114 gxCommand[6]=(u32)buf2s; //buf2 size
115 gxCommand[7]=0x0;
116
117 return gspSubmitGxCommand(gxCommand);
118}

Callers

nothing calls this directly

Calls 1

gspSubmitGxCommandFunction · 0.85

Tested by

no test coverage detected