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

Explicitly store GPU context type.

This commit is contained in:
Bartosz Taudul
2020-05-27 18:16:53 +02:00
parent 4f3934ae6a
commit 54a029356d
8 changed files with 41 additions and 24 deletions
+2
View File
@@ -12,6 +12,7 @@
#include "TracyVector.hpp"
#include "tracy_robin_hood.h"
#include "../common/TracyForceInline.hpp"
#include "../common/TracyQueue.hpp"
namespace tracy
{
@@ -571,6 +572,7 @@ struct GpuCtxData
float period;
unordered_flat_map<uint64_t, GpuCtxThreadData> threadData;
short_ptr<GpuEvent> query[64*1024];
GpuContextType type;
};
enum { GpuCtxDataSize = sizeof( GpuCtxData ) };