From c153eac3ed0a3e8f5ea449b09ee855cf746a43f9 Mon Sep 17 00:00:00 2001 From: "Bernhart, Bryan" Date: Thu, 9 Feb 2023 17:17:41 -0800 Subject: [PATCH] Fix enum ops failing builds from #758. --- include/gpgmm_d3d12.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/gpgmm_d3d12.h b/include/gpgmm_d3d12.h index d3f68513f..55ea7303a 100644 --- a/include/gpgmm_d3d12.h +++ b/include/gpgmm_d3d12.h @@ -37,6 +37,10 @@ #define GPGMM_INTERFACE struct +namespace gpgmm { + DEFINE_ENUM_FLAG_OPERATORS(EventRecordFlags) // Provided by +} + namespace gpgmm::d3d12 { /** \brief Debug object associates additional information for D3D objects using SetPrivateData. @@ -276,11 +280,8 @@ namespace gpgmm::d3d12 { virtual HRESULT Reset() = 0; }; - using EVENT_RECORD_FLAGS = EventRecordFlags; using EVENT_RECORD_OPTIONS = EventRecordOptions; - DEFINE_ENUM_FLAG_OPERATORS(EVENT_RECORD_FLAGS) - /** \brief Create a residency list or collection of heaps to manage together for residency. @param[out] ppResidencyListOut An optional pointer to a memory block that receives the