Add **GPU profiling support to Tracy integration**
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "GPUDeviceVulkan.h"
|
||||
#include "Engine/Core/Types/BaseTypes.h"
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
#include <ThirdParty/tracy/tracy/TracyVulkan.hpp>
|
||||
|
||||
#if GRAPHICS_API_VULKAN
|
||||
|
||||
@@ -42,6 +43,8 @@ private:
|
||||
FenceVulkan* _fence;
|
||||
#if GPU_ALLOW_PROFILE_EVENTS
|
||||
int32 _eventsBegin = 0;
|
||||
struct TracyZone { byte Data[TracyVulkanZoneSize]; };
|
||||
Array<TracyZone, InlinedAllocation<32>> _tracyZones;
|
||||
#endif
|
||||
|
||||
// The latest value when command buffer was submitted.
|
||||
@@ -129,7 +132,7 @@ public:
|
||||
}
|
||||
|
||||
#if GPU_ALLOW_PROFILE_EVENTS
|
||||
void BeginEvent(const Char* name);
|
||||
void BeginEvent(const Char* name, void* tracyContext);
|
||||
void EndEvent();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user