Assert.h file new in Git master
Macro MAGNUM_
Defines
- #define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS(call) new in Git master
- Assert that a Vulkan function call succeeds.
- #define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS_OR(call, ...) new in Git master
- Assert that a Vulkan function call succeeds or returns any of the specified results.
Define documentation
#define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS(call) new in Git master
Assert that a Vulkan function call succeeds.
Compared to using CORRADE_call == VK_SUCCESS, this macro also prints the result value. Otherwise the behavior is the same, including interactions with CORRADE_
You can override this implementation by placing your own #define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS before including the Magnum/
#define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS_OR(call, ...) new in Git master
Assert that a Vulkan function call succeeds or returns any of the specified results.
A variant of MAGNUM_
const Vk::Result result = MAGNUM_VK_INTERNAL_ASSERT_SUCCESS_OR( vkGetFenceStatus(device, fence), Vk::Result::NotReady); if(result == Vk::Result::Success) { // signaled } else { // Vk::Result::NotReady, not signaled yet }
Similarly to CORRADE_if and return statements. You can override this implementation by placing your own #define MAGNUM_VK_INTERNAL_ASSERT_SUCCESS_OR before including the Magnum/