From a9a083ea5c649498d2f12e611dbc7c767d152130 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Mon, 6 Apr 2026 12:18:10 +1000 Subject: Add WIP refactored reflex impl --- src/strategies/low_latency2/device_strategy.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/strategies/low_latency2/device_strategy.hh') diff --git a/src/strategies/low_latency2/device_strategy.hh b/src/strategies/low_latency2/device_strategy.hh index 18f8bd9..af1b471 100644 --- a/src/strategies/low_latency2/device_strategy.hh +++ b/src/strategies/low_latency2/device_strategy.hh @@ -2,15 +2,31 @@ #define STRATEGIES_LOW_LATENCY2_DEVICE_STRATEGY_HH_ #include "strategies/device_strategy.hh" +#include "swapchain_monitor.hh" + +#include +#include namespace low_latency { class DeviceContext; class LowLatency2DeviceStrategy final : public DeviceStrategy { + private: + std::shared_mutex mutex; + // swapchain -> swapchain monitor + std::unordered_map swapchain_monitors; + public: LowLatency2DeviceStrategy(DeviceContext& device); virtual ~LowLatency2DeviceStrategy(); + + public: + virtual void + notify_create_swapchain(const VkSwapchainKHR& swapchain, + const VkSwapchainCreateInfoKHR& info) override; + virtual void + notify_destroy_swapchain(const VkSwapchainKHR& swapchain) override; }; } // namespace low_latency -- cgit v1.2.3