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
+1 -1
View File
@@ -9,7 +9,7 @@ namespace tracy
constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
enum : uint32_t { ProtocolVersion = 32 };
enum : uint32_t { ProtocolVersion = 33 };
enum : uint32_t { BroadcastVersion = 1 };
using lz4sz_t = uint32_t;
+9
View File
@@ -258,6 +258,14 @@ struct QueueMessageColor : public QueueMessage
uint8_t b;
};
// Don't change order, only add new entries at the end, this is also used on trace dumps!
enum class GpuContextType : uint8_t
{
Invalid,
OpenGl,
Vulkan
};
struct QueueGpuNewContext
{
int64_t cpuTime;
@@ -266,6 +274,7 @@ struct QueueGpuNewContext
float period;
uint8_t context;
uint8_t accuracyBits;
GpuContextType type;
};
struct QueueGpuZoneBegin