From 06d0989161fd3c29ec4cb4777bb91239d87eafe8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Sep 2022 13:52:17 +0200 Subject: [PATCH] Add GPU index accessor. --- server/TracyTimelineItemGpu.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyTimelineItemGpu.hpp b/server/TracyTimelineItemGpu.hpp index e538ccf3..2d059c4f 100644 --- a/server/TracyTimelineItemGpu.hpp +++ b/server/TracyTimelineItemGpu.hpp @@ -12,6 +12,8 @@ class TimelineItemGpu final : public TimelineItem public: TimelineItemGpu( View& view, Worker& worker, GpuCtxData* gpu ); + int GetIdx() const { return m_idx; } + protected: uint32_t HeaderColor() const override { return 0xFFFFAAAA; } uint32_t HeaderColorInactive() const override { return 0xFF886666; }