[Bf-blender-cvs] [6fda295034a] soc-2019-openxr: Add comment on DirectX device debugging
Julian Eisel
noreply at git.blender.org
Mon Mar 2 17:13:26 CET 2020
Commit: 6fda295034af1573127daae1d31879819253beff
Author: Julian Eisel
Date: Mon Mar 2 12:39:38 2020 +0100
Branches: soc-2019-openxr
https://developer.blender.org/rB6fda295034af1573127daae1d31879819253beff
Add comment on DirectX device debugging
===================================================================
M intern/ghost/intern/GHOST_ContextD3D.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_ContextD3D.cpp b/intern/ghost/intern/GHOST_ContextD3D.cpp
index 605a52905b1..0e95f64eb93 100644
--- a/intern/ghost/intern/GHOST_ContextD3D.cpp
+++ b/intern/ghost/intern/GHOST_ContextD3D.cpp
@@ -100,17 +100,21 @@ GHOST_TSuccess GHOST_ContextD3D::initializeDrawingContext()
return GHOST_kFailure;
}
- HRESULT hres = s_D3D11CreateDeviceFn(NULL,
- D3D_DRIVER_TYPE_HARDWARE,
- NULL,
- // D3D11_CREATE_DEVICE_DEBUG,
- 0,
- NULL,
- 0,
- D3D11_SDK_VERSION,
- &m_device,
- NULL,
- &m_device_ctx);
+ HRESULT hres = s_D3D11CreateDeviceFn(
+ NULL,
+ D3D_DRIVER_TYPE_HARDWARE,
+ NULL,
+ /* For debugging you may want to pass D3D11_CREATE_DEVICE_DEBUG here, but that requires
+ * additional setup, see
+ * https://docs.microsoft.com/en-us/windows/win32/direct3d11/overviews-direct3d-11-devices-layers#debug-layer.
+ */
+ 0,
+ NULL,
+ 0,
+ D3D11_SDK_VERSION,
+ &m_device,
+ NULL,
+ &m_device_ctx);
WIN32_CHK(hres == S_OK);
More information about the Bf-blender-cvs
mailing list