From ce2455e60fceeded3e23355efdc268f04a16a970 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Sat, 17 Oct 2026 22:33:49 +0300 Subject: [PATCH] fix clang, again --- OptiScaler/gpu_time/GpuTime_Vk.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/OptiScaler/gpu_time/GpuTime_Vk.h b/OptiScaler/gpu_time/GpuTime_Vk.h index 2922106c..235f75dc 100644 --- a/OptiScaler/gpu_time/GpuTime_Vk.h +++ b/OptiScaler/gpu_time/GpuTime_Vk.h @@ -21,7 +21,15 @@ class GpuTime_Vk // The Vulkan w/Dx12 path records the start in the game's CB and the end in a copy-back CB. // A slot cannot be reused until that copy-back submit signals its timeline semaphore. - enum class InteropSlotState : uint8_t { Free, Recording, Ended, Submitted, Quarantined }; + enum class InteropSlotState : uint8_t + { + Free, + Recording, + Ended, + Submitted, + Quarantined + }; + struct InteropSlot { InteropSlotState state = InteropSlotState::Free; @@ -29,6 +37,7 @@ class GpuTime_Vk uint64_t value = 0; uint64_t serial = 0; }; + std::array _interopSlots {}; std::mutex _interopMutex; PFN_vkGetSemaphoreCounterValue _getSemaphoreCounterValue = nullptr;