mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Moved methods into public scope and add GetQueryPool() method to enable use of the VkCtx directly rather than just from VkCtxScope (#695)
This commit is contained in:
parent
1557a9ac52
commit
d62428c482
@ -323,7 +323,6 @@ public:
|
|||||||
m_tail += cnt;
|
m_tail += cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
tracy_force_inline unsigned int NextQueryId()
|
tracy_force_inline unsigned int NextQueryId()
|
||||||
{
|
{
|
||||||
const uint64_t id = m_head.fetch_add(1, std::memory_order_relaxed);
|
const uint64_t id = m_head.fetch_add(1, std::memory_order_relaxed);
|
||||||
@ -335,6 +334,12 @@ private:
|
|||||||
return m_context;
|
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 )
|
tracy_force_inline void Calibrate( VkDevice device, int64_t& tCpu, int64_t& tGpu )
|
||||||
{
|
{
|
||||||
assert( m_timeDomain != VK_TIME_DOMAIN_DEVICE_EXT );
|
assert( m_timeDomain != VK_TIME_DOMAIN_DEVICE_EXT );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user