File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ class NBL_API2 CVulkanConnection final : public IAPIConnection
2121 core::smart_refctd_ptr<system::ILogger>&& logger, const SFeatures& featuresToEnable
2222 );
2323
24+ static void exportGpuProfile ();
25+
2426 inline VkInstance getInternalObject () const {return m_vkInstance;}
2527
2628 inline E_API_TYPE getAPIType () const override {return EAT_VULKAN;}
2729
2830 inline IDebugCallback* getDebugCallback () const override {return m_debugCallback.get ();}
2931
30- void exportGpuProfile () const ;
3132
3233 bool startCapture () override ;
3334 bool endCapture () override ;
Original file line number Diff line number Diff line change @@ -316,6 +316,13 @@ core::smart_refctd_ptr<CVulkanConnection> CVulkanConnection::create(core::smart_
316316 return api;
317317}
318318
319+ void CVulkanConnection::exportGpuProfile ()
320+ {
321+ constexpr char arg1[] = " --json" ;
322+ char * argv = const_cast <char *>(arg1);
323+ vulkaninfo (1 , &argv);
324+ }
325+
319326CVulkanConnection::~CVulkanConnection ()
320327{
321328 if (m_vkDebugUtilsMessengerEXT!=VK_NULL_HANDLE)
@@ -324,13 +331,6 @@ CVulkanConnection::~CVulkanConnection()
324331 vkDestroyInstance (m_vkInstance,nullptr );
325332}
326333
327- void CVulkanConnection::exportGpuProfile () const
328- {
329- constexpr char arg1[] = " --json" ;
330- char * argv = const_cast <char *>(arg1);
331- vulkaninfo (1 , &argv);
332- }
333-
334334bool CVulkanConnection::startCapture ()
335335{
336336 if (flag.test_and_set ())
You can’t perform that action at this time.
0 commit comments