aboutsummaryrefslogtreecommitdiff
path: root/src/strategies/low_latency2/device_strategy.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-04-06 12:18:10 +1000
committerNicolas James <nj3ahxac@gmail.com>2026-04-06 12:18:10 +1000
commita9a083ea5c649498d2f12e611dbc7c767d152130 (patch)
treee67cfd11bc37a4faa0f1fbd448e66307cd75a624 /src/strategies/low_latency2/device_strategy.hh
parentfcdac1c3287d314d7127516d56f0dec788392063 (diff)
Add WIP refactored reflex impl
Diffstat (limited to 'src/strategies/low_latency2/device_strategy.hh')
-rw-r--r--src/strategies/low_latency2/device_strategy.hh16
1 files changed, 16 insertions, 0 deletions
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 <shared_mutex>
+#include <unordered_map>
namespace low_latency {
class DeviceContext;
class LowLatency2DeviceStrategy final : public DeviceStrategy {
+ private:
+ std::shared_mutex mutex;
+ // swapchain -> swapchain monitor
+ std::unordered_map<VkSwapchainKHR, SwapchainMonitor> 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