// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved. #pragma once #include "IncludeVulkanHeaders.h" #if GRAPHICS_API_VULKAN // Per platform configuration #include "VulkanPlatform.h" // Vulkan API version to target #ifndef VULKAN_API_VERSION #define VULKAN_API_VERSION VK_API_VERSION_1_0 #endif // Amount of back buffers to use #define VULKAN_BACK_BUFFERS_COUNT 2 #define VULKAN_BACK_BUFFERS_COUNT_MAX 16 /// /// Default amount of frames to wait until resource delete. /// #define VULKAN_RESOURCE_DELETE_SAFE_FRAMES_COUNT 10 #define VULKAN_ENABLE_API_DUMP 0 #define VULKAN_RESET_QUERY_POOLS 0 #define VULKAN_HASH_POOLS_WITH_TYPES_USAGE_ID 1 #ifndef VULKAN_USE_DEBUG_LAYER #define VULKAN_USE_DEBUG_LAYER GPU_ENABLE_DIAGNOSTICS #endif #ifndef VULKAN_HAS_PHYSICAL_DEVICE_PROPERTIES2 #define VULKAN_HAS_PHYSICAL_DEVICE_PROPERTIES2 0 #endif #ifdef VK_KHR_maintenance1 #define VULKAN_SUPPORTS_MAINTENANCE_LAYER1 1 #else #define VULKAN_SUPPORTS_MAINTENANCE_LAYER1 0 #endif #ifdef VK_KHR_maintenance2 #define VULKAN_SUPPORTS_MAINTENANCE_LAYER2 1 #else #define VULKAN_SUPPORTS_MAINTENANCE_LAYER2 0 #endif #ifdef VK_EXT_validation_cache #define VULKAN_SUPPORTS_VALIDATION_CACHE 1 #else #define VULKAN_SUPPORTS_VALIDATION_CACHE 0 #endif #ifdef VK_EXT_debug_utils #define VULKAN_SUPPORTS_DEBUG_UTILS 1 #else #define VULKAN_SUPPORTS_DEBUG_UTILS 0 #endif #endif