How to get current display mode (resolution, refresh rate) of a monitor/output in DXGI?

后端 未结 3 1022
野性不改
野性不改 2021-02-13 13:24

I am creating a multi-monitor full screen DXGI/D3D application. I am enumerating through the available outputs and adapters in preparation of creating their swap chains.

3条回答
  •  醉话见心
    2021-02-13 13:29

    I saw solution here: http://www.rastertek.com/dx11tut03.html

    In folow part:

       // Now go through all the display modes and find the one that matches the screen width and height.
        // When a match is found store the numerator and denominator of the refresh rate for that monitor.
        for(i=0; i

    Is my understanding correct, the available resolution is in the displayModeList.

提交回复
热议问题