diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-10-11 18:10:39 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-11-07 20:27:13 +1100 |
commit | 4b014b3a8125de22350748d97171c63041256d7b (patch) | |
tree | aeb0b408a3cc6792fb92d6c6a697f98937499dbf /video/out/gpu/d3d11_helpers.h | |
parent | 9b2dae79b1be1f57e7b6bcf80d500ab4190aa3d3 (diff) | |
download | mpv-4b014b3a8125de22350748d97171c63041256d7b.tar.bz2 mpv-4b014b3a8125de22350748d97171c63041256d7b.tar.xz |
vo_gpu: move d3d11_screenshot to shared code
This can be used by the ANGLE backend and ra_d3d11.
Diffstat (limited to 'video/out/gpu/d3d11_helpers.h')
-rw-r--r-- | video/out/gpu/d3d11_helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gpu/d3d11_helpers.h b/video/out/gpu/d3d11_helpers.h index 6d99c62a51..481c183b4d 100644 --- a/video/out/gpu/d3d11_helpers.h +++ b/video/out/gpu/d3d11_helpers.h @@ -23,6 +23,8 @@ #include <d3d11.h> #include <dxgi1_2.h> +#include "video/mp_image.h" + #define D3D_FEATURE_LEVEL_12_0 (0xc000) #define D3D_FEATURE_LEVEL_12_1 (0xc100) @@ -76,4 +78,6 @@ bool mp_d3d11_create_swapchain(ID3D11Device *dev, struct mp_log *log, struct d3d11_swapchain_opts *opts, IDXGISwapChain **swapchain_out); +struct mp_image *mp_d3d11_screenshot(IDXGISwapChain *swapchain); + #endif |