diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-10-12 00:35:22 +0300 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2019-10-13 22:31:33 +1100 |
commit | 648d7859300562a99f035e06a0d42245c3c46e23 (patch) | |
tree | d627852fd319b8e6b3a11b2aef526b6b43712113 /video/out/gpu/d3d11_helpers.h | |
parent | 4809a3f48d41f5414057e965c0f18e0279cc2abe (diff) | |
download | mpv-648d7859300562a99f035e06a0d42245c3c46e23.tar.bz2 mpv-648d7859300562a99f035e06a0d42245c3c46e23.tar.xz |
vo_gpu/d3d11: add support for configuring swap chain format
Query information on the system output most linked to the swap chain,
and either utilize a user-configured format, or either 8bit
RGBA or 10bit RGB with 2bit alpha depending on the system output's
bit depth.
Diffstat (limited to 'video/out/gpu/d3d11_helpers.h')
-rw-r--r-- | video/out/gpu/d3d11_helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/d3d11_helpers.h b/video/out/gpu/d3d11_helpers.h index 705c5a59cb..cd22d4b145 100644 --- a/video/out/gpu/d3d11_helpers.h +++ b/video/out/gpu/d3d11_helpers.h @@ -71,6 +71,7 @@ struct d3d11_swapchain_opts { HWND window; int width; int height; + DXGI_FORMAT format; // Use DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL if possible bool flip; |