aboutsummaryrefslogtreecommitdiff
path: root/src/helper.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/helper.hh
parent681bd5096ee416b50dd7338de30af7b3db385a36 (diff)
Fix AL2 via VK_NV_low_latency2's async implementation, fix race in TimestampPool
Diffstat (limited to 'src/helper.hh')
-rw-r--r--src/helper.hh5
1 files changed, 5 insertions, 0 deletions
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 <typename T>
static T* find_next(void* const head, const VkStructureType& stype) {