summaryrefslogtreecommitdiffstats
path: root/video/d3d.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-03 15:58:19 +0200
committerwm4 <wm4@nowhere>2015-07-03 16:04:42 +0200
commitb85321d0573ba581694d2e6be1effafee74c11d1 (patch)
treeaabed80d8c8ec801ff358150da9b1ca0b6f615d4 /video/d3d.h
parentb6dc11810b78953d95a75d745d7327a796f0b462 (diff)
downloadmpv-b85321d0573ba581694d2e6be1effafee74c11d1.tar.bz2
mpv-b85321d0573ba581694d2e6be1effafee74c11d1.tar.xz
vo_direct3d, dxva2: use the same D3D device
Since we still read-back (and don't have hard plans on changing this), this doesn't have much of an advantage.
Diffstat (limited to 'video/d3d.h')
-rw-r--r--video/d3d.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/video/d3d.h b/video/d3d.h
new file mode 100644
index 0000000000..30bee49adc
--- /dev/null
+++ b/video/d3d.h
@@ -0,0 +1,13 @@
+#ifndef MP_D3D_H_
+#define MP_D3D_H_
+
+#include <d3d9.h>
+
+#include "hwdec.h"
+
+struct mp_d3d_ctx {
+ struct mp_hwdec_ctx hwctx;
+ IDirect3DDevice9 *d3d9_device;
+};
+
+#endif