Skip to content

Commit

Permalink
Merge pull request #801 from kubouch/patch-1
Browse files Browse the repository at this point in the history
Fix wrong parameter in TracyCLContextName
  • Loading branch information
wolfpld committed May 29, 2024
2 parents cbea6d7 + da9b9f8 commit 608ff35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/tracy/TracyOpenCL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ namespace tracy {

using TracyCLCtx = tracy::OpenCLCtx*;

#define TracyCLContext(context, device) tracy::CreateCLContext(context, device);
#define TracyCLContext(ctx, device) tracy::CreateCLContext(ctx, device);
#define TracyCLDestroy(ctx) tracy::DestroyCLContext(ctx);
#define TracyCLContextName(context, name, size) ctx->Name(name, size);
#define TracyCLContextName(ctx, name, size) ctx->Name(name, size);
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK
# define TracyCLNamedZone(ctx, varname, name, active) static constexpr tracy::SourceLocationData TracyConcat(__tracy_gpu_source_location,TracyLine) { name, TracyFunction, TracyFile, (uint32_t)TracyLine, 0 }; tracy::OpenCLCtxScope varname(ctx, &TracyConcat(__tracy_gpu_source_location,TracyLine), TRACY_CALLSTACK, active );
# define TracyCLNamedZoneC(ctx, varname, name, color, active) static constexpr tracy::SourceLocationData TracyConcat(__tracy_gpu_source_location,TracyLine) { name, TracyFunction, TracyFile, (uint32_t)TracyLine, color }; tracy::OpenCLCtxScope varname(ctx, &TracyConcat(__tracy_gpu_source_location,TracyLine), TRACY_CALLSTACK, active );
Expand Down

0 comments on commit 608ff35

Please sign in to comment.