aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index a93ecf9d0b..00cd535301 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -289,6 +289,22 @@ static const struct gl_functions gl_functions[] = {
{0}
},
},
+#if HAVE_GL_DXINTEROP
+ {
+ .extension = "WGL_NV_DX_interop",
+ .provides = MPGL_CAP_DXINTEROP,
+ .functions = (const struct gl_function[]) {
+ DEF_FN_NAME(DXSetResourceShareHandleNV, "wglDXSetResourceShareHandleNV"),
+ DEF_FN_NAME(DXOpenDeviceNV, "wglDXOpenDeviceNV"),
+ DEF_FN_NAME(DXCloseDeviceNV, "wglDXCloseDeviceNV"),
+ DEF_FN_NAME(DXRegisterObjectNV, "wglDXRegisterObjectNV"),
+ DEF_FN_NAME(DXUnregisterObjectNV, "wglDXUnregisterObjectNV"),
+ DEF_FN_NAME(DXLockObjectsNV, "wglDXLockObjectsNV"),
+ DEF_FN_NAME(DXUnlockObjectsNV, "wglDXUnlockObjectsNV"),
+ {0}
+ },
+ },
+#endif
// Apple Packed YUV Formats
// For gl_hwdec_vda.c
// http://www.opengl.org/registry/specs/APPLE/rgb_422.txt
@@ -527,6 +543,7 @@ extern const struct mpgl_driver mpgl_driver_cocoa;
extern const struct mpgl_driver mpgl_driver_wayland;
extern const struct mpgl_driver mpgl_driver_w32;
extern const struct mpgl_driver mpgl_driver_angle;
+extern const struct mpgl_driver mpgl_driver_dxinterop;
extern const struct mpgl_driver mpgl_driver_rpi;
static const struct mpgl_driver *const backends[] = {
@@ -542,6 +559,9 @@ static const struct mpgl_driver *const backends[] = {
#if HAVE_GL_WIN32
&mpgl_driver_w32,
#endif
+#if HAVE_GL_DXINTEROP
+ &mpgl_driver_dxinterop,
+#endif
#if HAVE_GL_WAYLAND
&mpgl_driver_wayland,
#endif