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

Function GX_DisplayTransfer

libctru/source/gpu/gx.c:76–88  ·  view source on GitHub ↗

Flags, for applications this is 0x1001000 for the main screen, and 0x1000 for the sub screen.

Source from the content-addressed store, hash-verified

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)
77{
78 u32 gxCommand[0x8];
79 gxCommand[0]=0x01000100 | 0x03; //CommandID
80 gxCommand[1]=(u32)inadr;
81 gxCommand[2]=(u32)outadr;
82 gxCommand[3]=indim;
83 gxCommand[4]=outdim;
84 gxCommand[5]=flags;
85 gxCommand[6]=gxCommand[7]=0x0;
86
87 return submitGxCommand(gxCommand);
88}
89
90Result GX_TextureCopy(u32* inadr, u32 indim, u32* outadr, u32 outdim, u32 size, u32 flags)
91{

Callers

nothing calls this directly

Calls 1

submitGxCommandFunction · 0.85

Tested by

no test coverage detected