Move back to C
I'm insane and as such I have moved to C AGAIN! Without any reason.
This commit is contained in:
1 parent
bf31b96a2e
commit
3d538eaa2c
43 files changed
+2645
-2649
No files matched your search
@@ -9,15 +9,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LOCALE_VULKAN_H
|
||||
#define LOCALE_VULKAN_H
|
||||
#ifndef RSE_LOCALE_VULKAN_H
|
||||
#define RSE_LOCALE_VULKAN_H
|
||||
|
||||
#include "utilities/localization.h"
|
||||
|
||||
#define vulkanErrorMesssages vulkanErrorMesssages_nolocale[SELECTED_LANGUAGE]
|
||||
#define vulkan_error_messages vulkan_error_messages_nolocale[SELECTED_LANGUAGE]
|
||||
|
||||
enum Errors
|
||||
{
|
||||
enum vulkan_errors_t {
|
||||
VULKAN_LAYER_NOT_SUPPORTED,
|
||||
VULKAN_EXTENSION_NOT_SUPPORTED,
|
||||
VULKAN_INTANCE_INIT_FAILED,
|
||||
@@ -45,66 +44,78 @@ enum Errors
|
||||
VULKAN_RECORD_COMMAND_BEGIN_FAILED,
|
||||
VULKAN_RECORD_COMMAND_BUFFER_FAILED,
|
||||
VULKAN_SYNCOBJCTS_CREATION_FAILED,
|
||||
VULKAN_MESH_NO_FREE,
|
||||
VULKAN_MESH_INSTANCE_NO_FREE,
|
||||
VULAKN_DRAW_FAILED,
|
||||
COMMON_MEMORY_ALLOCATION_FAILED,
|
||||
LAST_MESSAGE
|
||||
};
|
||||
|
||||
const char vulkanErrorMesssages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
|
||||
static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
|
||||
{/* EN_US */
|
||||
/* VULKAN_LAYER_NOT_SUPPORTED */
|
||||
"Selected layer is not supported: ",
|
||||
"Selected layer is not supported: %s\n",
|
||||
/* VULKAN_EXTENSION_NOT_SUPPORTED */
|
||||
"Selected extension is not supported: ",
|
||||
"Selected extension is not supported: %s\n",
|
||||
/* VULKAN_INTANCE_INIT_FAILED */
|
||||
"Vulkan instance initialization failed",
|
||||
"Vulkan instance initialization failed\n",
|
||||
/* VULKAN_NO_PHYSICAL_DEVICES */
|
||||
"No physical graphical physical devices found in system",
|
||||
"No physical graphical physical devices found in system\n",
|
||||
/* VULKAN_NO_SUITABLE_PHYSICAL_DEVICES */
|
||||
"No suitable physical device found",
|
||||
"No suitable physical device found\n",
|
||||
/* VULKAN_QUEUE_NOT_SUPPORTED */
|
||||
"Selected physical device does not support required queue capabilities",
|
||||
"Selected physical device does not support required queue capabilities\n",
|
||||
/* VULKAN_FAILED_TO_CREATE_DEVICE */
|
||||
"Failed to create logical device",
|
||||
"Failed to create logical device\n",
|
||||
/* VULKAN_ALLOCATOR_CREATION_FAILED */
|
||||
"Failed to create Vulkan Memory Allocator",
|
||||
"Failed to create Vulkan Memory Allocator\n",
|
||||
/* VULKAN_COMMAND_POOL_CREATION_FAILED */
|
||||
"Failed to create command pool",
|
||||
"Failed to create command pool\n",
|
||||
/* VULKAN_BUFFER_CREATION_FAILED */
|
||||
"Failed to create a vertex buffer",
|
||||
"Failed to create a vertex buffer\n",
|
||||
/* VULKAN_VERTEX_BUFFER_MAPPING_FAILED */
|
||||
"Failed to map vulkan memory buffer",
|
||||
"Failed to map vulkan memory buffer\n",
|
||||
/* VULKAN_COMMAND_BUFFER_ALLOCATION_FAILED */
|
||||
"Failed to allocate command buffers",
|
||||
"Failed to allocate command buffers\n",
|
||||
/* VULKAN_SURFACE_CREATION_FAILED */
|
||||
"Failed to create window surface",
|
||||
"Failed to create window surface\n",
|
||||
/* VULKAN_SWAPCHAIN_CREATION_FAILED */
|
||||
"Failed to create swapchain",
|
||||
"Failed to create swapchain\n",
|
||||
/* VULKAN_SWAPCHAIN_IMVIEW_CREATION_FAILED */
|
||||
"Failed to create swapchain image view",
|
||||
"Failed to create swapchain image view\n",
|
||||
/* VULKAN_SHADER_UNABLE_TO_OPEN */
|
||||
"Failed to open a file containing shader code",
|
||||
"Failed to open a file containing shader code\n",
|
||||
/* VULKAN_SHADER_UNABLE_TO_CREATE_SHADER */
|
||||
"Failed to create a shader",
|
||||
"Failed to create a shader\n",
|
||||
/* VULKAN_PIPELAYOUT_CREATION_FAILED */
|
||||
"Failed to create pipeline layout",
|
||||
"Failed to create pipeline layout\n",
|
||||
/* VULKAN_RENDERPASS_CREATION_FAILED */
|
||||
"Failed to create render pass",
|
||||
"Failed to create render pass\n",
|
||||
/* VULKAN_DESCRIPTOR_POOL_CREATION_FAILED */
|
||||
"Failed to create descriptor pool",
|
||||
"Failed to create descriptor pool\n",
|
||||
/* VULKAN_DESCRIPTOR_SETS_ALLOCATION_FAILED */
|
||||
"Failed to allocate descriptor sets",
|
||||
"Failed to allocate descriptor sets\n",
|
||||
/* VULKAN_DESCRIPTORSETLAYOUT_CREATION_FAILED */
|
||||
"Failed to create descriptor set layout",
|
||||
"Failed to create descriptor set layout\n",
|
||||
/* VULKAN_GRAPHICSPIPELINE_CREATION_FAILED */
|
||||
"Failed to create graphics pipeline",
|
||||
"Failed to create graphics pipeline\n",
|
||||
/* VULKAN_FRAMEBUFFERS_CREATION_FAILED */
|
||||
"Failed to create framebuffer",
|
||||
"Failed to create framebuffer\n",
|
||||
/* VULKAN_RECORD_COMMAND_BEGIN_FAILED */
|
||||
"Failed to start recording command buffer",
|
||||
"Failed to start recording command buffer\n",
|
||||
/* VULKAN_RECORD_COMMAND_BUFFER_FAILED */
|
||||
"Failed to record command buffer. Validate your commands.",
|
||||
"Failed to record command buffer. Validate your commands.\n",
|
||||
/* VULKAN_SYNCOBJCTS_CREATION_FAILED */
|
||||
"Failed to create sync objects"
|
||||
"Failed to create sync objects.\n",
|
||||
/* VULKAN_MESH_NO_FREE */
|
||||
"Could not allocate new mesh, reached maximum.\n",
|
||||
/* VULKAN_MESH_INSTANCE_NO_FREE */
|
||||
"Could not allocate new mesh instance\n",
|
||||
/* VULAKN_DRAW_FAILED */
|
||||
"Failed to submit draw command buffer!",
|
||||
/* COMMON_MEMORY_ALLOCATION_FAILED */
|
||||
"Unable to allocate memory"
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* LOCALE_VULKAN_H */
|
||||
#endif /* RSE_LOCALE_VULKAN_H */
|
||||
Reference in new issue
Block a user