diff --git a/graphics/src/locale_vulkan.h b/graphics/src/locale_vulkan.h index 17fbc97b..2c967b71 100644 --- a/graphics/src/locale_vulkan.h +++ b/graphics/src/locale_vulkan.h @@ -47,7 +47,6 @@ enum vulkan_errors_t { VULKAN_MESH_NO_FREE, VULKAN_MESH_INSTANCE_NO_FREE, VULAKN_DRAW_FAILED, - COMMON_MEMORY_ALLOCATION_FAILED, LAST_MESSAGE }; @@ -113,8 +112,6 @@ static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MA "Could not allocate new mesh instance\n", /* VULAKN_DRAW_FAILED */ "Failed to submit draw command buffer!", - /* COMMON_MEMORY_ALLOCATION_FAILED */ - "Unable to allocate memory" } }; diff --git a/utilities/locale_common.h b/utilities/locale_common.h new file mode 100644 index 00000000..a240b43f --- /dev/null +++ b/utilities/locale_common.h @@ -0,0 +1,31 @@ +/** + * @file locale_common.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 RSE_LOCALE_COMMON_H +#define RSE_LOCALE_COMMON_H + +#include "localization.h" + +#define vulkan_error_messages vulkan_error_messages_nolocale[SELECTED_LANGUAGE] + +enum vulkan_errors_t { + COMMON_MEMORY_ALLOCATION_FAILED, + LAST_MESSAGE +}; + +static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = { + {/* EN_US */ + /* COMMON_MEMORY_ALLOCATION_FAILED */ + "Unable to allocate memory" + } +}; + +#endif /* RSE_LOCALE_COMMON_H */ \ No newline at end of file