diff options
Diffstat (limited to 'src/helper.hh')
| -rw-r--r-- | src/helper.hh | 5 |
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) { |
