From 743a327d2d1da2f4e75dba0bb6eae9aa9a7662c6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 15 Dec 2023 17:10:02 +0000 Subject: [PATCH] Moved methods into public scope and add GetQueryPool() method to enable use of the VkCtx directly rather than just from VkCtxScope --- public/tracy/TracyVulkan.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/tracy/TracyVulkan.hpp b/public/tracy/TracyVulkan.hpp index f49437be..5f3c8b39 100644 --- a/public/tracy/TracyVulkan.hpp +++ b/public/tracy/TracyVulkan.hpp @@ -323,7 +323,6 @@ public: m_tail += cnt; } -private: tracy_force_inline unsigned int NextQueryId() { const uint64_t id = m_head.fetch_add(1, std::memory_order_relaxed); @@ -335,6 +334,13 @@ private: return m_context; } + tracy_force_inline VkQueryPool GetQueryPool() const + { + return m_query; + } + +private: + tracy_force_inline void Calibrate( VkDevice device, int64_t& tCpu, int64_t& tGpu ) { assert( m_timeDomain != VK_TIME_DOMAIN_DEVICE_EXT );