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/helper.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/helper.hh') diff --git a/src/helper.hh b/src/helper.hh index 468f146..6dde9be 100644 --- a/src/helper.hh +++ b/src/helper.hh @@ -8,6 +8,11 @@ namespace low_latency { +#define THROW_NOT_VKSUCCESS(x) \ + if (const auto result = x; result != VK_SUCCESS) { \ + throw result; \ + } + // Small templates which allow us to SFINAE find pNext structs. template static T* find_next(void* const head, const VkStructureType& stype) { -- cgit v1.2.3