Minor refactoring

Use `const std::array<...>` instead of `const std::vector<...>`.
This commit is contained in:
Stephen Seo 2024-03-07 16:47:37 +09:00
parent d0f14585b6
commit 38f7248f49

View file

@ -21,7 +21,7 @@
static std::vector<const char *> VK_EXTENSIONS = {}; static std::vector<const char *> VK_EXTENSIONS = {};
#if VULKAN_VALIDATION == 1 #if VULKAN_VALIDATION == 1
const std::vector<const char *> VALIDATION_LAYERS = { const std::array<const char *, 1> VALIDATION_LAYERS = {
"VK_LAYER_KHRONOS_validation"}; "VK_LAYER_KHRONOS_validation"};
static VKAPI_ATTR VkBool32 VKAPI_CALL fn_VULKAN_DEBUG_CALLBACK( static VKAPI_ATTR VkBool32 VKAPI_CALL fn_VULKAN_DEBUG_CALLBACK(