From 0fd4a2533b578ac92c331caa05b7cdc66c83f83f Mon Sep 17 00:00:00 2001 From: "chss95cs@gmail.com" Date: Sun, 11 Sep 2022 14:35:33 -0700 Subject: [PATCH] Prevent clang-format from moving d3d12_nvapi above the require d3d12 headers --- src/xenia/ui/d3d12/d3d12_provider.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xenia/ui/d3d12/d3d12_provider.h b/src/xenia/ui/d3d12/d3d12_provider.h index 5136672c1..3c5cad102 100644 --- a/src/xenia/ui/d3d12/d3d12_provider.h +++ b/src/xenia/ui/d3d12/d3d12_provider.h @@ -12,9 +12,13 @@ #include -#include "xenia/gpu/d3d12/d3d12_nvapi.hpp" #include "xenia/ui/d3d12/d3d12_api.h" #include "xenia/ui/graphics_provider.h" +// chrispy: this is here to prevent clang format from moving d3d12_nvapi above +// the headers it depends on +#define HEADERFENCE +#undef HEADERFENCE +#include "xenia/gpu/d3d12/d3d12_nvapi.hpp" #define XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES 1 namespace xe {