mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +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__
|
#ifndef __TRACYOPENGL_HPP__
|
||||||
#define __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>
|
#include <atomic>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user