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.
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.
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.
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.
Yeah... making a 64K. Thanks for the code.
if your butt hurt, put some lube bro.
Also: "fake" full screen (topmost monitor/desktop spanning windowed device) is an option worth looking into for various reasons.