1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Added server support for D3D12 contexts

This commit is contained in:
Andrew Depke
2020-06-07 00:40:08 -06:00
parent 4be5e0bfa1
commit 3282a8d27c
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ namespace tracy
MemWrite(&item->gpuNewContext.period, 1E+09f / static_cast<float>(timestampFrequency));
MemWrite(&item->gpuNewContext.context, m_context);
MemWrite(&item->gpuNewContext.accuracyBits, uint8_t{ 0 });
MemWrite(&item->gpuNewContext.type, GpuContextType::Vulkan); // #TEMP: Add a Direct3D12 context type in the server.
MemWrite(&item->gpuNewContext.type, GpuContextType::Direct3D12);
#ifdef TRACY_ON_DEMAND
GetProfiler().DeferItem(*item);