Greetings.
I saw a lot of questions about full screen with dx11. I read a lot, tried to code a lot, finally I managed how to do this. Almost. The last piece of puzzle for me (well, I hope that it's last ) is to how to handle resolutions in full screen. Suppose I have a list of predefined resolutions and I want to use the one user selected. I know how to do this for buffers/targets - I just need to call
swapChain->ResizeBuffers()
and create new render targets with specified size.
But one interesting thing - when I change from windowed to full screen I also need to setup a new viewport. And for this I need to know the full screen size. For example, user have monitor with size 2560x1440 but selected 800x600 resolution. I specify 800x600 as the desired size of swap chain (buffers), but the viewport should be 2560x1440. How to achieve this? Is there any d3d function?
Or I'm totally wrong and viewport should be 800x600 also?