Hide internals behind TracyVkCtx typedef.

This commit is contained in:
Bartosz Taudul 2019-01-14 12:40:54 +01:00
parent 070888f80d
commit a95e8a5424

View File

@ -16,10 +16,7 @@
#define TracyVkZoneS(c,x,y,z)
#define TracyVkZoneCS(c,x,y,z,w)
namespace tracy
{
class VkCtx {};
}
using TracyVkCtx = void*;
#else
@ -296,6 +293,8 @@ static inline void DestroyVkContext( VkCtx* ctx )
}
using TracyVkCtx = tracy::VkCtx*;
#define TracyVkContext( physdev, device, queue, cmdbuf ) tracy::CreateVkContext( physdev, device, queue, cmdbuf );
#define TracyVkDestroy( ctx ) tracy::DestroyVkContext( ctx );
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK