mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Support GL_EXT_disjoint_timer_query with EXT postfix.
This commit is contained in:
parent
2d3e7ee796
commit
5e6bc30bab
@ -40,6 +40,14 @@ public:
|
|||||||
#include "common/TracyAlign.hpp"
|
#include "common/TracyAlign.hpp"
|
||||||
#include "common/TracyAlloc.hpp"
|
#include "common/TracyAlloc.hpp"
|
||||||
|
|
||||||
|
#if !defined GL_TIMESTAMP && defined GL_TIMESTAMP_EXT
|
||||||
|
# define GL_TIMESTAMP GL_TIMESTAMP_EXT
|
||||||
|
# define GL_QUERY_COUNTER_BITS GL_QUERY_COUNTER_BITS_EXT
|
||||||
|
# define glGetQueryObjectiv glGetQueryObjectivEXT
|
||||||
|
# define glGetQueryObjectui64v glGetQueryObjectui64vEXT
|
||||||
|
# define glQueryCounter glQueryCounterEXT
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TracyGpuContext tracy::GetGpuCtx().ptr = (tracy::GpuCtx*)tracy::tracy_malloc( sizeof( tracy::GpuCtx ) ); new(tracy::GetGpuCtx().ptr) tracy::GpuCtx;
|
#define TracyGpuContext tracy::GetGpuCtx().ptr = (tracy::GpuCtx*)tracy::tracy_malloc( sizeof( tracy::GpuCtx ) ); new(tracy::GetGpuCtx().ptr) tracy::GpuCtx;
|
||||||
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK
|
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK
|
||||||
# define TracyGpuNamedZone( varname, name ) static const tracy::SourceLocationData TracyConcat(__tracy_gpu_source_location,__LINE__) { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::GpuCtxScope varname( &TracyConcat(__tracy_gpu_source_location,__LINE__), TRACY_CALLSTACK );
|
# define TracyGpuNamedZone( varname, name ) static const tracy::SourceLocationData TracyConcat(__tracy_gpu_source_location,__LINE__) { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::GpuCtxScope varname( &TracyConcat(__tracy_gpu_source_location,__LINE__), TRACY_CALLSTACK );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user