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

Function GX_MemoryFill

libctru/source/gpu/gx.c:60–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60Result GX_MemoryFill(u32* buf0a, u32 buf0v, u32* buf0e, u16 control0, u32* buf1a, u32 buf1v, u32* buf1e, u16 control1)
61{
62 u32 gxCommand[0x8];
63 gxCommand[0]=0x01000100 | 0x02; //CommandID
64 gxCommand[1]=(u32)buf0a; //buf0 address
65 gxCommand[2]=buf0v; //buf0 value
66 gxCommand[3]=(u32)buf0e; //buf0 end addr
67 gxCommand[4]=(u32)buf1a; //buf1 address
68 gxCommand[5]=buf1v; //buf1 value
69 gxCommand[6]=(u32)buf1e; //buf1 end addr
70 gxCommand[7]=(control0)|(control1<<16);
71
72 return submitGxCommand(gxCommand);
73}
74
75// Flags, for applications this is 0x1001000 for the main screen, and 0x1000 for the sub screen.
76Result GX_DisplayTransfer(u32* inadr, u32 indim, u32* outadr, u32 outdim, u32 flags)

Callers

nothing calls this directly

Calls 1

submitGxCommandFunction · 0.85

Tested by

no test coverage detected