#include <vulkan/vulkan.h>
#include <vulkan/vk_enum_string_helper.h>
#include <string>
#include <stdexcept>
Go to the source code of this file.
|
#define | VK_ERR_STR(result) (std::string(string_VkResult(result))) |
|
#define | VK_CHECK(function, message) |
|
◆ VK_CHECK
#define VK_CHECK |
( |
|
function, |
|
|
|
message |
|
) |
| |
Value: { \
VkResult result = function; \
if (result != VK_SUCCESS) \
{ \
throw std::runtime_error( \
__PRETTY_FUNCTION__ + std::string(": ") \
+ std::string(message) + " (" + std::string(string_VkResult(result)) + ")" \
); \
} \
}
◆ VK_ERR_STR
#define VK_ERR_STR |
( |
|
result | ) |
(std::string(string_VkResult(result))) |