Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-04 14:52:17 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-04 14:52:17 +0300
commit06d0989161fd3c29ec4cb4777bb91239d87eafe8 (patch)
tree5fa5ecd5f790c51d7226f2e7779b0ede249f7878 /server
parent9fdafb2eccf19d56fef763ca890d85b66c19414a (diff)
Add GPU index accessor.
Diffstat (limited to 'server')
-rw-r--r--server/TracyTimelineItemGpu.hpp2
1 files changed, 2 insertions, 0 deletions
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; }