diff options
author | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2019-09-23 17:05:49 +0300 |
---|---|---|
committer | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2019-09-23 17:06:14 +0300 |
commit | 0f68e1e9816b7d9ab83bbbf2875e77687292b83a (patch) | |
tree | 70f94b29947b1f5b6076e2d53cdd3141e8b90517 /TracyVulkan.hpp | |
parent | daf64c703a92602430cda80832219ca1536a498b (diff) |
Send thread id in GPU zone end message.
We don't care about OpenGL zone thread ids, so the identifier is zeroed.
Diffstat (limited to 'TracyVulkan.hpp')
-rw-r--r-- | TracyVulkan.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index d95d8682..be87eb38 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -256,6 +256,7 @@ public: auto item = Profiler::QueueSerial(); MemWrite( &item->hdr.type, QueueType::GpuZoneEnd ); MemWrite( &item->gpuZoneEnd.cpuTime, Profiler::GetTime() ); + MemWrite( &item->gpuZoneEnd.thread, GetThreadHandle() ); MemWrite( &item->gpuZoneEnd.queryId, uint16_t( queryId ) ); MemWrite( &item->gpuZoneEnd.context, m_ctx->GetId() ); Profiler::QueueSerialFinish(); |