Examples: DirectX10, DirectX11, DirectX12: comments about fullscreen mode and swapchain setup. (#8979)

This commit is contained in:
ocornut
2025-10-22 13:57:27 +02:00
parent 2a022d997b
commit b3dab0a406
5 changed files with 6 additions and 1 deletions

View File

@@ -198,6 +198,7 @@ int main(int, char**)
bool CreateDeviceD3D(HWND hWnd)
{
// Setup swap chain
// This is a basic setup. Optimally could use e.g. DXGI_SWAP_EFFECT_FLIP_DISCARD and handle fullscreen mode differently. See #8979 for suggestions.
DXGI_SWAP_CHAIN_DESC sd;
ZeroMemory(&sd, sizeof(sd));
sd.BufferCount = 2;