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.
This commit is contained in:
Bartosz Taudul 2019-02-18 14:45:09 +01:00
parent 081b1069f6
commit c9c4d2845a
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,11 @@
#define TracyGpuZoneS(x,y) #define TracyGpuZoneS(x,y)
#define TracyGpuZoneCS(x,y,z) #define TracyGpuZoneCS(x,y,z)
namespace tracy
{
class GpuCtxScope {};
}
#else #else
#include <atomic> #include <atomic>

View File

@ -16,6 +16,11 @@
#define TracyVkZoneS(c,x,y,z) #define TracyVkZoneS(c,x,y,z)
#define TracyVkZoneCS(c,x,y,z,w) #define TracyVkZoneCS(c,x,y,z,w)
namespace tracy
{
class VkCtxScope {};
}
using TracyVkCtx = void*; using TracyVkCtx = void*;
#else #else