File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
include/nbl/video/utilities Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef _NBL_VIDEO_UTILITIES_NGFX_H_INCLUDED_
2
2
#define _NBL_VIDEO_UTILITIES_NGFX_H_INCLUDED_
3
3
4
+ // TODO: hopefully this is temporary
4
5
#include " C:\Program Files\NVIDIA Corporation\Nsight Graphics 2024.1.0\SDKs\NsightGraphicsSDK\0.8.0\include\NGFX_Injection.h"
5
6
6
7
namespace nbl ::video
@@ -11,7 +12,7 @@ namespace nbl::video
11
12
NGFX_Injection_InstallationInfo versionInfo;
12
13
};
13
14
14
- bool injectNGFXToProcess (SNGFXIntegration& api)
15
+ inline bool injectNGFXToProcess (SNGFXIntegration& api)
15
16
{
16
17
uint32_t numInstallations = 0 ;
17
18
auto result = NGFX_Injection_EnumerateInstallations (&numInstallations, nullptr );
@@ -73,6 +74,11 @@ namespace nbl::video
73
74
return true ;
74
75
}
75
76
77
+ inline void executeNGFXCommand ()
78
+ {
79
+ NGFX_Injection_ExecuteActivityCommand ();
80
+ }
81
+
76
82
using ngfx_api_t = SNGFXIntegration;
77
83
}
78
84
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ bool CVulkanConnection::startCapture()
339
339
if (debugType == EDT_RENDERDOC)
340
340
m_rdoc_api->StartFrameCapture (RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE (m_vkInstance), NULL );
341
341
else
342
- NGFX_Injection_ExecuteActivityCommand ();
342
+ executeNGFXCommand ();
343
343
return true ;
344
344
}
345
345
Original file line number Diff line number Diff line change 2
2
3
3
#include " nbl/video/IPhysicalDevice.h"
4
4
#include " nbl/video/utilities/renderdoc.h"
5
+ #include " nbl/video/utilities/ngfx.h"
5
6
6
7
#if defined(_NBL_POSIX_API_)
7
8
#include < dlfcn.h>
You can’t perform that action at this time.
0 commit comments