mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-07 00:15:27 +00:00
Add GpuContextNone enumerator.
This commit is contained in:
@@ -534,6 +534,7 @@ enum class GpuContextType : uint8_t
|
||||
|
||||
enum GpuContextFlags : uint8_t
|
||||
{
|
||||
GpuContextNone = 0,
|
||||
GpuContextCalibration = 1 << 0
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user