mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Manual initialization of GpuEvents.
This commit is contained in:
@@ -108,6 +108,8 @@ static_assert( std::numeric_limits<decltype(LockEvent::lockCount)>::max() >= Max
|
||||
|
||||
struct GpuEvent
|
||||
{
|
||||
void Init() { memset( &child, 0, 12 ); }
|
||||
|
||||
int64_t cpuStart;
|
||||
int64_t cpuEnd;
|
||||
int64_t gpuStart;
|
||||
@@ -118,6 +120,7 @@ struct GpuEvent
|
||||
};
|
||||
|
||||
enum { GpuEventSize = sizeof( GpuEvent ) };
|
||||
static_assert( sizeof( GpuEvent::child ) == 13, "Adjust vector clear size!" );
|
||||
|
||||
#pragma pack()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user