mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Stub GPU defines and class when profiler is disabled.
This commit is contained in:
parent
a6bca43cca
commit
dde30b92d9
@ -1,7 +1,24 @@
|
||||
#ifndef __TRACYOPENGL_HPP__
|
||||
#define __TRACYOPENGL_HPP__
|
||||
|
||||
#ifdef TRACY_ENABLE
|
||||
#ifndef TRACY_ENABLE
|
||||
|
||||
#define TracyGpuZone(x,y)
|
||||
#define TracyGpuZoneC(x,y,z)
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
template<int>
|
||||
class GpuCtx
|
||||
{
|
||||
public:
|
||||
void Collect() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <atomic>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user