Search code examples
directxdirectx-11dxgi

what is the IDXGIFactory1::IsCurrent work for?


I notices that IDXGIFactory1 only add two interface from IDXGIFactory, which are EnumAdapter1 and IsCurrent.

1.So, what is the use of IsCurrent?


Solution

  • The IsCurrent method is for dealing with cases where information about the outputs that is cached internally by DXGI is outdated, meaning you should create a new factory.

    This comes up in the handling of HDR10 displays. You can see it's use in my implementation of DeviceResources for DX11 and DX12