diff --git a/public/common/TracyQueue.hpp b/public/common/TracyQueue.hpp index db5a70f7..9a4a57df 100644 --- a/public/common/TracyQueue.hpp +++ b/public/common/TracyQueue.hpp @@ -534,6 +534,7 @@ enum class GpuContextType : uint8_t enum GpuContextFlags : uint8_t { + GpuContextNone = 0, GpuContextCalibration = 1 << 0 }; diff --git a/public/tracy/TracyCUDA.hpp b/public/tracy/TracyCUDA.hpp index b5f7c99d..92ff685c 100644 --- a/public/tracy/TracyCUDA.hpp +++ b/public/tracy/TracyCUDA.hpp @@ -1461,7 +1461,7 @@ namespace tracy #if TRACY_CUDA_CALIBRATED_CONTEXT tracyMemWrite(item->gpuNewContext.flags, GpuContextCalibration); #else - tracyMemWrite(item->gpuNewContext.flags, tracy::GpuContextFlags(0)); + tracyMemWrite(item->gpuNewContext.flags, tracy::GpuContextNone); #endif #ifdef TRACY_ON_DEMAND GetProfiler().DeferItem(*item); diff --git a/public/tracy/TracyD3D11.hpp b/public/tracy/TracyD3D11.hpp index 00741f6f..29f5b095 100644 --- a/public/tracy/TracyD3D11.hpp +++ b/public/tracy/TracyD3D11.hpp @@ -132,7 +132,7 @@ public: MemWrite( &item->gpuNewContext.thread, uint32_t(0) ); // #TODO: why not GetThreadHandle()? MemWrite( &item->gpuNewContext.period, 1.0f ); MemWrite( &item->gpuNewContext.context, uint8_t(m_contextId)); - MemWrite( &item->gpuNewContext.flags, GpuContextFlags(0) ); + MemWrite( &item->gpuNewContext.flags, GpuContextNone ); MemWrite( &item->gpuNewContext.type, GpuContextType::Direct3D11 ); #ifdef TRACY_ON_DEMAND diff --git a/public/tracy/TracyMetal.hmm b/public/tracy/TracyMetal.hmm index fb3c1c00..1859d99c 100644 --- a/public/tracy/TracyMetal.hmm +++ b/public/tracy/TracyMetal.hmm @@ -347,7 +347,7 @@ private: MemWrite(&item->gpuNewContext.period, period); MemWrite(&item->gpuNewContext.context, static_cast(m_contextId)); //MemWrite(&item->gpuNewContext.flags, GpuContextCalibration); - MemWrite(&item->gpuNewContext.flags, GpuContextFlags(0)); + MemWrite(&item->gpuNewContext.flags, GpuContextNone); MemWrite(&item->gpuNewContext.type, GpuContextType::Metal); SubmitQueueItem(item); } diff --git a/public/tracy/TracyOpenCL.hpp b/public/tracy/TracyOpenCL.hpp index 4d937900..d9747602 100644 --- a/public/tracy/TracyOpenCL.hpp +++ b/public/tracy/TracyOpenCL.hpp @@ -114,7 +114,7 @@ namespace tracy { MemWrite(&item->gpuNewContext.period, 1.0f); MemWrite(&item->gpuNewContext.type, GpuContextType::OpenCL); MemWrite(&item->gpuNewContext.context, uint8_t(m_contextId)); - MemWrite(&item->gpuNewContext.flags, GpuContextFlags(0)); + MemWrite(&item->gpuNewContext.flags, GpuContextNone); #ifdef TRACY_ON_DEMAND GetProfiler().DeferItem(*item); #endif diff --git a/public/tracy/TracyOpenGL.hpp b/public/tracy/TracyOpenGL.hpp index f99ab63e..68ce5ecb 100644 --- a/public/tracy/TracyOpenGL.hpp +++ b/public/tracy/TracyOpenGL.hpp @@ -173,7 +173,7 @@ public: #ifdef TRACY_OPENGL_AUTO_CALIBRATION MemWrite( &item->gpuNewContext.flags, GpuContextFlags( GpuContextCalibration ) ); #else - MemWrite( &item->gpuNewContext.flags, GpuContextFlags( 0 ) ); + MemWrite( &item->gpuNewContext.flags, GpuContextNone ); #endif MemWrite( &item->gpuNewContext.type, GpuContextType::OpenGl ); diff --git a/public/tracy/TracyWebGPU.hpp b/public/tracy/TracyWebGPU.hpp index da002a3b..ef3e25dc 100644 --- a/public/tracy/TracyWebGPU.hpp +++ b/public/tracy/TracyWebGPU.hpp @@ -114,7 +114,7 @@ namespace tracy MemWrite(&item->gpuNewContext.thread, static_cast(0)); MemWrite(&item->gpuNewContext.period, static_cast(period)); MemWrite(&item->gpuNewContext.context, static_cast(ctxId)); - MemWrite(&item->gpuNewContext.flags, GpuContextFlags(0)); // no calibration available + MemWrite(&item->gpuNewContext.flags, GpuContextNone); // no calibration available MemWrite(&item->gpuNewContext.type, GpuContextType::WebGPU); SubmitQueueItem(item);