105 lines
2.1 KiB
C++
105 lines
2.1 KiB
C++
/**
|
|
* @file localeVulkan.h
|
|
* @author Piotr Krygier (everyonecancode@gmail.com)
|
|
* @brief Error messages for Vulkan initializers
|
|
* @version 0.1
|
|
* @date 2022-05-13
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
|
|
#ifndef LOCALE_VULKAN_H
|
|
#define LOCALE_VULKAN_H
|
|
|
|
#include "localization.hpp"
|
|
|
|
enum Errors
|
|
{
|
|
VULKAN_INTANCE_INIT_FAILED,
|
|
VULKAN_NO_PHYSICAL_DEVICES,
|
|
VULKAN_NO_SUITABLE_PHYSICAL_DEVICES,
|
|
VULKAN_QUEUE_NOT_SUPPORTED,
|
|
VULKAN_FAILED_TO_CREATE_DEVICE,
|
|
VULKAN_ALLOCATOR_CREATION_FAILED,
|
|
VULKAN_COMMAND_POOL_CREATION_FAILED,
|
|
VULKAN_COMMAND_BUFFER_ALLOCATION_FAILED,
|
|
VULKAN_SURFACE_CREATION_FAILED,
|
|
VULKAN_SWAPCHAIN_CREATION_FAILED,
|
|
VULKAN_SWAPCHAIN_IMVIEW_CREATION_FAILED,
|
|
LAST_MESSAGE
|
|
};
|
|
|
|
const struct MessageString_t vulkanErrorMesssages[LAST_MESSAGE] =
|
|
{
|
|
{
|
|
38,
|
|
{/* VULKAN_INTANCE_INIT_FAILED */
|
|
"Vulkan instance initialization failed"
|
|
}
|
|
},
|
|
{
|
|
55,
|
|
{/* VULKAN_NO_PHYSICAL_DEVICES */
|
|
"No physical graphical physical devices found in system"
|
|
}
|
|
},
|
|
{
|
|
35,
|
|
{/* VULKAN_NO_SUITABLE_PHYSICAL_DEVICES */
|
|
"No suitable physical device found"
|
|
}
|
|
},
|
|
{
|
|
70,
|
|
{/* VULKAN_QUEUE_NOT_SUPPORTED */
|
|
"Selected physical device does not support required queue capabilities"
|
|
}
|
|
},
|
|
{
|
|
23,
|
|
{/* VULKAN_FAILED_TO_CREATE_DEVICE */
|
|
"Failed to create logical device"
|
|
}
|
|
},
|
|
{
|
|
41,
|
|
{/* VULKAN_ALLOCATOR_CREATION_FAILED */
|
|
"Failed to create Vulkan Memory Allocator"
|
|
}
|
|
},
|
|
{
|
|
30,
|
|
{/* VULKAN_COMMAND_POOL_CREATION_FAILED */
|
|
"Failed to create command pool"
|
|
}
|
|
},
|
|
{
|
|
35,
|
|
{/* VULKAN_COMMAND_BUFFER_ALLOCATION_FAILED */
|
|
"Failed to allocate command buffers"
|
|
}
|
|
},
|
|
{
|
|
32,
|
|
{/* VULKAN_SURFACE_CREATION_FAILED */
|
|
"Failed to create window surface"
|
|
}
|
|
},
|
|
{
|
|
27,
|
|
{/* VULKAN_SWAPCHAIN_CREATION_FAILED */
|
|
"Failed to create swapchain"
|
|
}
|
|
},
|
|
{
|
|
38,
|
|
{/* VULKAN_SWAPCHAIN_IMVIEW_CREATION_FAILED */
|
|
"Failed to create swapchain image view"
|
|
}
|
|
},
|
|
};
|
|
|
|
|
|
#endif
|