Example #1
0
void App::BeforeReset_Internal()
{
    // Need this in order to resize the swap chain
    DX12::FlushGPU();

    BeforeReset();
}
Example #2
0
void App::ToggleFullScreen(bool fullScreen)
{
    if(fullScreen != deviceManager.FullScreen())
    {
        BeforeReset();

        deviceManager.SetFullScreen(fullScreen);
        deviceManager.Reset();

        AfterReset();
    }
}