Add GpuContextNone enumerator.

This commit is contained in:
Bartosz Taudul
2026-11-04 19:06:13 +01:00
parent 02a825b393
commit 453ecc3b74
7 changed files with 7 additions and 6 deletions
+1
View File
@@ -534,6 +534,7 @@ enum class GpuContextType : uint8_t
enum GpuContextFlags : uint8_t
{
GpuContextNone = 0,
GpuContextCalibration = 1 << 0
};
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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
+1 -1
View File
@@ -347,7 +347,7 @@ private:
MemWrite(&item->gpuNewContext.period, period);
MemWrite(&item->gpuNewContext.context, static_cast<uint8_t>(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);
}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -114,7 +114,7 @@ namespace tracy
MemWrite(&item->gpuNewContext.thread, static_cast<uint32_t>(0));
MemWrite(&item->gpuNewContext.period, static_cast<float>(period));
MemWrite(&item->gpuNewContext.context, static_cast<uint8_t>(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);