Blender Git Commit Log
Git Commits -> Revision 41e2f2e
Revision 41e2f2e by Julian Eisel (soc-2019-openxr, temp-ghost_openxr, temp-vr-draw-thread, vamr-openxr-module, vr_scene_inspection) May 30, 2019, 12:48 (GMT) |
Proper creation & destruction of OpenXR instances Adds wm_xr.c for an XR management API and creates/destroys the OpenXR instance through this. This is as planned in my proposal, to lock the OpenXR calls behind an abstraction. XR data will be stored in a (non-public) wmXRContext struct within the window-manager. For now, creates the OpenXR instance on startup. I think it's better to lazy setup this, as in, only creating the instance once the user starts the first XR session. Just to avoid costs for something that may not be used (the OpenXR loader we use will try loading and parsing the system's OpenXR active_runtime.json on instance creation). That's for later when I introduce session management though. Also added a context getter for the xr-context, which is unused but may be handy later. |
Commit Details:
Full Hash: 41e2f2e75f301fbbfcde8a0c97414f9f019ea63e
Parent Commit: 864abbd
Lines Changed: +118, -1
1 Added Path:
/source/blender/windowmanager/intern/wm_xr.c (+75, -0) (View)
9 Modified Paths:
/source/blender/blenkernel/BKE_context.h (+3, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+4, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+7, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+4, -1) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+4, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+12, -0) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+2, -0) (Diff)
/source/blender/windowmanager/wm.h (+6, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+4, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+7, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+4, -1) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+4, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+12, -0) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+2, -0) (Diff)
/source/blender/windowmanager/wm.h (+6, -0) (Diff)