aboutsummaryrefslogtreecommitdiff
path: root/src/device_context.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 15:54:10 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 15:54:10 +1100
commit644bc4ed5edd4e3ffa88750bdacb147c75df9546 (patch)
tree5580f05b202493ccb68d5c67ec37e10d53f3cd1d /src/device_context.hh
parent681bd5096ee416b50dd7338de30af7b3db385a36 (diff)
Fix AL2 via VK_NV_low_latency2's async implementation, fix race in TimestampPool
Diffstat (limited to 'src/device_context.hh')
-rw-r--r--src/device_context.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/device_context.hh b/src/device_context.hh
index 172801c..0e0a4eb 100644
--- a/src/device_context.hh
+++ b/src/device_context.hh
@@ -24,7 +24,8 @@ class DeviceContext final : public Context {
InstanceContext& instance;
PhysicalDeviceContext& physical_device;
- // Whether or not we were asked to do NV_VK_LowLatency2 or VK_AMD_anti_lag.
+ // Whether or not we were asked to do NV_VK_LowLatency2 or VK_AMD_anti_lag
+ // at the device level.
const bool was_capability_requested;
const VkDevice device;
@@ -39,13 +40,13 @@ class DeviceContext final : public Context {
public:
DeviceContext(InstanceContext& parent_instance,
PhysicalDeviceContext& parent_physical,
- const VkDevice& device, const bool was_antilag_requested,
+ const VkDevice& device, const bool was_capability_requested,
VkuDeviceDispatchTable&& vtable);
virtual ~DeviceContext();
public:
- // Updates the settings associated with that swapchain. If none is provided
- // all swapchains are set to this value.
+ // Updates the settings associated with that swapchain. If no swapchain
+ // target is provided all swapchains are set to this value.
void update_params(const std::optional<VkSwapchainKHR> target,
const std::chrono::milliseconds& present_delay,
const bool was_low_latency_requested);