VOX
A little voxel engine
Loading...
Searching...
No Matches
vk_define.hpp File Reference
#include <vulkan/vulkan.h>
#include <vulkan/vk_enum_string_helper.h>
#include <string>
#include <stdexcept>
Include dependency graph for vk_define.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VK_ERR_STR(result)   (std::string(string_VkResult(result)))
 
#define VK_CHECK(function, message)
 

Macro Definition Documentation

◆ 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)))