From 644bc4ed5edd4e3ffa88750bdacb147c75df9546 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Mon, 30 Mar 2026 15:54:10 +1100 Subject: Fix AL2 via VK_NV_low_latency2's async implementation, fix race in TimestampPool --- src/physical_device_context.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/physical_device_context.cc') diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc index 9c4ad8e..86bf9ab 100644 --- a/src/physical_device_context.cc +++ b/src/physical_device_context.cc @@ -1,4 +1,5 @@ #include "physical_device_context.hh" +#include "helper.hh" #include @@ -26,25 +27,24 @@ PhysicalDeviceContext::PhysicalDeviceContext( vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count, nullptr); - using qp_t = PhysicalDeviceContext::queue_properties_t; - auto result = qp_t( + auto result = std::vector( count, VkQueueFamilyProperties2{ .sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2}); vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count, std::data(result)); - return std::make_unique(std::move(result)); + return std::make_unique>( + std::move(result)); }(); this->supports_required_extensions = [&]() { auto count = std::uint32_t{}; - THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( + THROW_NOT_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( physical_device, nullptr, &count, nullptr)); auto supported_extensions = std::vector(count); - THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( - physical_device, nullptr, &count, - std::data(supported_extensions))); + THROW_NOT_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( + physical_device, nullptr, &count, std::data(supported_extensions))); const auto supported = supported_extensions | -- cgit v1.2.3