Created
February 22, 2015 02:22
-
-
Save Subv/d4f06f71c832672948f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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