pouët.net

Go to bottom

DXGI fullscreen butthurt.

category: code [glöplog]
 
Hmmm, going fullscreen with DXGI seems like a pain in the ass.

What I have so far:

1. Create window, device, and swap chain
2. Set fullscreen state on swap chain
3. Resize the buffers in WM_SIZE

So far, so good, that works. But when I add DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH for Alt+Enter, the WM_SIZE isn't called anymore.

So far so good, so what. I wonder about DXGI_SWAP_EFFECT_DISCARD versus DXGI_SWAP_EFFECT_FLIP_DISCARD (Win10). The docs say, DXGI_SWAP_EFFECT_DISCARD is a bit-blit transfer.

I don't get it.
added on the 2016-01-14 12:01:35 by EvilOne EvilOne
It can be a bit confusing, I'll give you that.
Trying to make a demo?

https://github.com/visualizersdotnl/misc./blob/master/TPBDS%20stub/Stub.cpp

This once worked fine.

Haven't looked at the Win10 flag (beyond the the MSDN just now) yet but it seems like an optimization you probably don't need right now.
added on the 2016-01-14 13:00:50 by superplek superplek
Yeah... making a 64K. Thanks for the code.
added on the 2016-01-14 13:23:46 by EvilOne EvilOne
if your butt hurt, put some lube bro.
added on the 2016-01-14 13:29:05 by Tigrou Tigrou
Also: "fake" full screen (topmost monitor/desktop spanning windowed device) is an option worth looking into for various reasons.
added on the 2016-01-14 18:50:18 by superplek superplek

login

Go to top