Skip to content

Instantly share code, notes, and snippets.

@Subv
Created February 22, 2015 02:22
Show Gist options
  • Save Subv/d4f06f71c832672948f7 to your computer and use it in GitHub Desktop.
Save Subv/d4f06f71c832672948f7 to your computer and use it in GitHub Desktop.
template<typename T1, typename T2>
static void DisplayTransferAndWait(T1* input, T2* output, u32 input_dimensions, u32 output_dimensions, u32 flags) {
GSPGPU_FlushDataCache(NULL, (u8*)input, sizeof(T1));
GSPGPU_InvalidateDataCache(NULL, (u8*)output, sizeof(T2));
GX_SetDisplayTransfer(NULL, (u32*)input, input_dimensions, (u32*)output, output_dimensions, flags | RAW_COPY_FLAG);
//gspWaitForPPF();
svcSleepThread(1000 * 1000 * 1000); // 1 second
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment