From 312d8736ae0df55c9f33e4eb5c00e4cd77e1c33f Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Mon, 6 Apr 2026 17:03:35 +1000 Subject: Add refactored VK_NV_low_latency2 impl, (fixes many threading issues) --- src/strategies/low_latency2/device_strategy.hh | 11 +++++++++++ 1 file changed, 11 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 af1b471..499b2aa 100644 --- a/src/strategies/low_latency2/device_strategy.hh +++ b/src/strategies/low_latency2/device_strategy.hh @@ -6,6 +6,7 @@ #include #include +#include namespace low_latency { @@ -27,6 +28,16 @@ class LowLatency2DeviceStrategy final : public DeviceStrategy { const VkSwapchainCreateInfoKHR& info) override; virtual void notify_destroy_swapchain(const VkSwapchainKHR& swapchain) override; + + public: + void submit_swapchain_present_id(const VkSwapchainKHR& swapchain, + const std::uint64_t& present_id); + + void notify_latency_sleep_mode(const VkSwapchainKHR& swapchain, + const VkLatencySleepModeInfoNV* const info); + + void notify_latency_sleep_nv(const VkSwapchainKHR& swapchain, + const VkLatencySleepInfoNV& info); }; } // namespace low_latency -- cgit v1.2.3