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

Function GSPGPU_ImportDisplayCaptureInfo

libctru/source/services/gspgpu.c:647–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647Result GSPGPU_ImportDisplayCaptureInfo(GSPGPU_CaptureInfo* captureinfo)
648{
649 u32* cmdbuf=getThreadCommandBuffer();
650 cmdbuf[0]=IPC_MakeHeader(0x18,0,0); // 0x180000
651
652 Result ret=0;
653 if(R_FAILED(ret=svcSendSyncRequest(gspGpuHandle)))return ret;
654
655 ret = cmdbuf[1];
656
657 if(R_SUCCEEDED(ret)) memcpy(captureinfo, &cmdbuf[2], 0x20);
658
659 return ret;
660}
661
662Result GSPGPU_SaveVramSysArea(void)
663{

Callers 1

aptScreenTransferFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected