build: rename MAP as MAP0

This commit is contained in:
Danny Robson 2017-09-12 14:23:22 +10:00
parent 1b293d9a4e
commit 93b3fdedd8
2 changed files with 46 additions and 46 deletions

View File

@ -26,34 +26,34 @@ using cruft::vk::error_code;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#define VK_RESULT_MAP(FUNC)\ #define VK_RESULT_MAP(FUNC)\
MAP(FUNC, \ MAP0(FUNC, \
VK_SUCCESS, \ VK_SUCCESS, \
VK_NOT_READY, \ VK_NOT_READY, \
VK_TIMEOUT, \ VK_TIMEOUT, \
VK_EVENT_SET, \ VK_EVENT_SET, \
VK_EVENT_RESET, \ VK_EVENT_RESET, \
VK_INCOMPLETE, \ VK_INCOMPLETE, \
VK_ERROR_OUT_OF_HOST_MEMORY, \ VK_ERROR_OUT_OF_HOST_MEMORY, \
VK_ERROR_OUT_OF_DEVICE_MEMORY, \ VK_ERROR_OUT_OF_DEVICE_MEMORY, \
VK_ERROR_INITIALIZATION_FAILED, \ VK_ERROR_INITIALIZATION_FAILED, \
VK_ERROR_DEVICE_LOST, \ VK_ERROR_DEVICE_LOST, \
VK_ERROR_MEMORY_MAP_FAILED, \ VK_ERROR_MEMORY_MAP_FAILED, \
VK_ERROR_LAYER_NOT_PRESENT, \ VK_ERROR_LAYER_NOT_PRESENT, \
VK_ERROR_EXTENSION_NOT_PRESENT, \ VK_ERROR_EXTENSION_NOT_PRESENT, \
VK_ERROR_FEATURE_NOT_PRESENT, \ VK_ERROR_FEATURE_NOT_PRESENT, \
VK_ERROR_INCOMPATIBLE_DRIVER, \ VK_ERROR_INCOMPATIBLE_DRIVER, \
VK_ERROR_TOO_MANY_OBJECTS, \ VK_ERROR_TOO_MANY_OBJECTS, \
VK_ERROR_FORMAT_NOT_SUPPORTED, \ VK_ERROR_FORMAT_NOT_SUPPORTED, \
VK_ERROR_FRAGMENTED_POOL, \ VK_ERROR_FRAGMENTED_POOL, \
VK_ERROR_VALIDATION_FAILED_EXT, \ VK_ERROR_VALIDATION_FAILED_EXT, \
VK_ERROR_SURFACE_LOST_KHR, \ VK_ERROR_SURFACE_LOST_KHR, \
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR, \ VK_ERROR_NATIVE_WINDOW_IN_USE_KHR, \
VK_SUBOPTIMAL_KHR, \ VK_SUBOPTIMAL_KHR, \
VK_ERROR_OUT_OF_DATE_KHR, \ VK_ERROR_OUT_OF_DATE_KHR, \
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR, \ VK_ERROR_INCOMPATIBLE_DISPLAY_KHR, \
VK_ERROR_OUT_OF_POOL_MEMORY_KHR, \ VK_ERROR_OUT_OF_POOL_MEMORY_KHR, \
VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR, \ VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR, \
VK_ERROR_INVALID_SHADER_NV) VK_ERROR_INVALID_SHADER_NV)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

36
fwd.hpp
View File

@ -55,30 +55,30 @@ namespace cruft::vk {
template <VkResult> class error_code; template <VkResult> class error_code;
#define VK_ENUMERATED_TYPE_MAP(FUNC) \ #define VK_ENUMERATED_TYPE_MAP(FUNC) \
MAP(FUNC, \ MAP0(FUNC, \
physical_device) physical_device)
#define VK_DESCENDANT_TYPE_MAP(FUNC) \ #define VK_DESCENDANT_TYPE_MAP(FUNC) \
MAP(FUNC, \ MAP0(FUNC, \
device) device)
#define VK_OWNED_TYPE_MAP(FUNC) \ #define VK_OWNED_TYPE_MAP(FUNC) \
MAP(FUNC, \ MAP0(FUNC, \
buffer, \ buffer, \
command_pool, \ command_pool, \
device_memory, \ device_memory, \
framebuffer, \ framebuffer, \
image_view, \ image_view, \
pipeline_layout, \ pipeline_layout, \
queue, \ queue, \
render_pass, \ render_pass, \
semaphore, \ semaphore, \
shader_module, \ shader_module, \
surface, \ surface, \
swapchain) swapchain)
#define VK_TYPE_MAP(FUNC) \ #define VK_TYPE_MAP(FUNC) \
MAP(FUNC,instance) \ MAP0(FUNC,instance) \
VK_ENUMERATED_TYPE_MAP(FUNC) \ VK_ENUMERATED_TYPE_MAP(FUNC) \
VK_DESCENDANT_TYPE_MAP(FUNC) \ VK_DESCENDANT_TYPE_MAP(FUNC) \
VK_OWNED_TYPE_MAP(FUNC) VK_OWNED_TYPE_MAP(FUNC)