Function isWindowOccluded

Synopsis

#include <Source/Falcor/Core/API/Device.h>

bool isWindowOccluded() const

Description

Check if the window is occluded

Source

Lines 420-427 in Source/Falcor/Core/API/D3D12/D3D12Device.cpp. Line 103 in Source/Falcor/Core/API/Device.h.

bool Device::isWindowOccluded() const
{
    if (mpApiData->isWindowOccluded)
    {
        mpApiData->isWindowOccluded = (mpApiData->pSwapChain->Present(0, DXGI_PRESENT_TEST) == DXGI_STATUS_OCCLUDED);
    }
    return mpApiData->isWindowOccluded;
}





Add Discussion as Guest

Log in