diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-06 17:03:35 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-06 17:03:35 +1000 |
| commit | 312d8736ae0df55c9f33e4eb5c00e4cd77e1c33f (patch) | |
| tree | 170816e372c43ddc6522e059f7d6fdc8757330f2 /src/strategies/low_latency2/device_strategy.hh | |
| parent | a9a083ea5c649498d2f12e611dbc7c767d152130 (diff) | |
Add refactored VK_NV_low_latency2 impl, (fixes many threading issues)
Diffstat (limited to 'src/strategies/low_latency2/device_strategy.hh')
| -rw-r--r-- | src/strategies/low_latency2/device_strategy.hh | 11 |
1 files changed, 11 insertions, 0 deletions
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 <shared_mutex> #include <unordered_map> +#include <vulkan/vulkan_core.h> 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 |
