From c9c4d2845aefb9637915be183a1a83c516c31e31 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 18 Feb 2019 14:45:09 +0100 Subject: [PATCH] Provide empty {Gpu,Vk}CtxScope classes if tracy is disabled. This may be needed if some wrapping is done, abstracting the OpenGL and Vulkan tracing. --- TracyOpenGL.hpp | 5 +++++ TracyVulkan.hpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp index 9555e2c1..10bd860c 100644 --- a/TracyOpenGL.hpp +++ b/TracyOpenGL.hpp @@ -17,6 +17,11 @@ #define TracyGpuZoneS(x,y) #define TracyGpuZoneCS(x,y,z) +namespace tracy +{ +class GpuCtxScope {}; +} + #else #include diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index 2e11e873..85ea76a9 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -16,6 +16,11 @@ #define TracyVkZoneS(c,x,y,z) #define TracyVkZoneCS(c,x,y,z,w) +namespace tracy +{ +class VkCtxScope {}; +} + using TracyVkCtx = void*; #else