diff options
author | Dave Parks <davep@lindenlab.com> | 2022-10-10 10:20:16 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-10-10 10:20:16 -0500 |
commit | 5890f423b4ae0f372d72af413b2296e5291bfa67 (patch) | |
tree | fe8c300d2f28b52182830492be1db47ffa50fdd9 /indra/llrender/llvertexbuffer.h | |
parent | 0fed3884c21453eac23a4de714bc87cac9e5377e (diff) | |
parent | 5c65f58cb8c6a0065c2aaa7c4e7286124203f241 (diff) |
Merge branch 'DRTVWR-559' of ssh://bitbucket.org/lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/llrender/llvertexbuffer.h')
-rw-r--r-- | indra/llrender/llvertexbuffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.h b/indra/llrender/llvertexbuffer.h index a7907f9cae..d6f681e4ca 100644 --- a/indra/llrender/llvertexbuffer.h +++ b/indra/llrender/llvertexbuffer.h @@ -300,6 +300,9 @@ public: //for debugging, validate data in given range is valid void validateRange(U32 start, U32 end, U32 count, U32 offset) const; + #ifdef LL_PROFILER_ENABLE_TRACY_OPENGL + void setLabel(const char* label); + #endif protected: @@ -370,5 +373,11 @@ public: static U32 sSetCount; }; +#ifdef LL_PROFILER_ENABLE_TRACY_OPENGL +#define LL_LABEL_VERTEX_BUFFER(buf, name) buf->setLabel(name) +#else +#define LL_LABEL_VERTEX_BUFFER(buf, name) +#endif + #endif // LL_LLVERTEXBUFFER_H |