1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Include frame offset in frame image message.

This commit is contained in:
Bartosz Taudul
2019-06-07 20:09:29 +02:00
parent 8c912890f0
commit 784c4da53a
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -170,7 +170,7 @@ public:
GetProfiler().m_serialLock.unlock();
}
static tracy_force_inline void SendFrameImage( void* image, uint16_t w, uint16_t h )
static tracy_force_inline void SendFrameImage( void* image, uint16_t w, uint16_t h, uint8_t offset )
{
#ifdef TRACY_ON_DEMAND
if( !GetProfiler().IsConnected() ) return;
@@ -186,6 +186,7 @@ public:
MemWrite( &item->frameImage.image, (uint64_t)ptr );
MemWrite( &item->frameImage.w, w );
MemWrite( &item->frameImage.h, h );
MemWrite( &item->frameImage.offset, offset );
tail.store( magic + 1, std::memory_order_release );
}