From 3b1ef223bad5ba902bbb17cdc3686bfe807a6f50 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 5 Mar 2020 18:29:29 +0100 Subject: Ghost: Support drawing OpenGL framebuffers into a DirectX 11 buffer Adds a minimal DirectX 11 Ghost context, plus some shared DirectX-OpenGL resource interface using the NV_DX_interop2 WGL extension. From what I know, this should be available on modern GPUs. If not, it should fail gracefully. There should be no user visible changes at this point. Needed for DirectX-only OpenXR platforms (e.g. Windows Mixed Reality). I heard there are other use-cases as well though. It's known that this currently fails on some AMD systems, but that seems to be fixable. Most of this comes from the 2019 GSoC project, "Core Support of Virtual Reality Headsets through OpenXR" (https://wiki.blender.org/wiki/User:Severin/GSoC-2019/). Reviewed by: Jeroen Bakker, Ray Molenkam, Brecht van Lommel Differential Revision: https://developer.blender.org/D6190 --- intern/ghost/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/ghost/CMakeLists.txt') diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index cc671e31f92..c4f1efe1580 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -280,11 +280,13 @@ elseif(WIN32) ) list(APPEND SRC + intern/GHOST_ContextD3D.cpp intern/GHOST_DisplayManagerWin32.cpp intern/GHOST_DropTargetWin32.cpp intern/GHOST_SystemWin32.cpp intern/GHOST_WindowWin32.cpp + intern/GHOST_ContextD3D.h intern/GHOST_DisplayManagerWin32.h intern/GHOST_DropTargetWin32.h intern/GHOST_SystemWin32.h -- cgit v1.2.3