From a95e8a54249be00d72e6505bb7935b20dd77eb61 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 14 Jan 2019 12:40:54 +0100 Subject: [PATCH] Hide internals behind TracyVkCtx typedef. --- TracyVulkan.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index a37f21a0..2e11e873 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -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