Make nv aftermath files compile on linux (as a no-op)

This commit is contained in:
baldurk
2024-11-24 01:34:59 +00:00
parent ca8ad9c3aa
commit 97c7586758
2 changed files with 11 additions and 8 deletions
+3 -1
View File
@@ -2,7 +2,9 @@ set(sources
nv_counter_enumerator.cpp
nv_counter_enumerator.h
nv_gl_counters.h
nv_vk_counters.h)
nv_vk_counters.h
nv_aftermath.h
nv_aftermath.cpp)
if(ENABLE_GL OR ENABLE_GLES)
set(sources_gl nv_gl_counters.cpp)
+8 -7
View File
@@ -24,7 +24,6 @@
#include "nv_aftermath.h"
#include <windows.h>
#include <unordered_map>
#include "common/formatting.h"
#include "common/threading.h"
@@ -37,19 +36,21 @@ RDOC_CONFIG(bool, Replay_Debug_EnableAftermath, false,
RDOC_CONFIG(bool, Replay_Debug_EnableNVRTValidation, false,
"Enable nvidia Raytracing validation on D3D12 and Vulkan.");
#include "driver/dx/official/d3d12.h"
#include "driver/dx/official/dxgi.h"
#include "driver/vulkan/official/vulkan_core.h"
#include "driver/ihv/nv/official/aftermath/GFSDK_Aftermath.h"
#include "driver/ihv/nv/official/aftermath/GFSDK_Aftermath_GpuCrashDump.h"
#include "driver/ihv/nv/official/aftermath/GFSDK_Aftermath_GpuCrashDumpDecoding.h"
#include "official/nvapi/nvapi.h"
// assume this macro is only available if we got the real headers
#if defined(GFSDK_AFTERMATH_CALL)
#include "official/nvapi/nvapi.h"
#include <windows.h>
#include "driver/dx/official/d3d12.h"
#include "driver/dx/official/dxgi.h"
#include "driver/vulkan/official/vulkan_core.h"
namespace
{
#include "official/nvapi/nvapi_interface.h"