From da9b9f8e790207bf823c8e2fc927b6d24ebf9693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Wed, 29 May 2024 16:22:21 +0300 Subject: [PATCH] Fix wrong parameter in TracyCLContextName The macro accepted a `context` parameter, but its expansion used `ctx`. `context` is renamed to `ctx` in `TracyCLContext` for consistency. --- public/tracy/TracyOpenCL.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/tracy/TracyOpenCL.hpp b/public/tracy/TracyOpenCL.hpp index 34466ccc..20d0a7ca 100644 --- a/public/tracy/TracyOpenCL.hpp +++ b/public/tracy/TracyOpenCL.hpp @@ -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 );