Skip to content

Commit 471d128

Browse files
committed
make exportGpuProfile function in CVulkanConnection static
1 parent 6f6420b commit 471d128

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

include/nbl/video/CVulkanConnection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/nbl/video/CVulkanConnection.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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+
319326
CVulkanConnection::~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-
334334
bool CVulkanConnection::startCapture()
335335
{
336336
if (flag.test_and_set())

0 commit comments

Comments
 (0)