10#include "evan/EvanPlatform.hpp"
47 [[nodiscard]]
constexpr bool isOk(Error error)
49 return error == Error::Ok;
56 [[nodiscard]]
constexpr bool isFatal(Error error)
60 case Error::Suboptimal:
61 case Error::SwapchainOutOfDate:
63 case Error::Unsupported:
65 case Error::DeviceLost:
66 case Error::RuntimeLost:
67 case Error::OutOfMemory:
68 case Error::RuntimeError:
77 [[nodiscard]]
constexpr bool isRecoverable(Error error)
79 return !isOk(error) && !isFatal(error);
90 Error code = Error::Ok;
100 [[nodiscard]] Error mapVkResult(VkResult result);
Small result wrapper used by helpers that must return both a status and a value (e....