1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Handle multiple Vulkan threads.

This commit is contained in:
Bartosz Taudul
2019-09-23 17:27:49 +02:00
parent 0f68e1e981
commit a5ba74ed13
4 changed files with 193 additions and 64 deletions
+7 -2
View File
@@ -299,15 +299,20 @@ struct ThreadData
Vector<uint32_t> zoneIdStack;
};
struct GpuCtxThreadData
{
Vector<GpuEvent*> timeline;
Vector<GpuEvent*> stack;
};
struct GpuCtxData
{
int64_t timeDiff;
uint64_t thread;
uint64_t count;
Vector<GpuEvent*> timeline;
Vector<GpuEvent*> stack;
uint8_t accuracyBits;
float period;
flat_hash_map<uint64_t, GpuCtxThreadData, nohash<uint64_t>> threadData;
GpuEvent* query[64*1024];
};