---
Note that this code never runs in d3d10+ for a 0 pixelformat. Dxgi/tests/dxgi.c:2032 has a test that shows it results in an error.
-- v2: dxgi/tests: Test swapchains with zero dimensions. wined3d: Move zero swapchain parameter fixup to wined3d_swapchain_state_init. wined3d: Make wined3d_swapchain_desc in wined3d_swapchain_create const. dxgi: Read back the swapchain size assigned by wined3d.