74 lines
1.6 KiB
C
74 lines
1.6 KiB
C
// 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
|
|
|
|
/// <summary>
|
|
/// Default amount of frames to wait until resource delete.
|
|
/// </summary>
|
|
#define VULKAN_RESOURCE_DELETE_SAFE_FRAMES_COUNT 10
|
|
|
|
// Enables the VK_LAYER_LUNARG_api_dump layer and the report VK_DEBUG_REPORT_INFORMATION_BIT_EXT flag
|
|
#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_USE_DESCRIPTOR_POOL_MANAGER
|
|
#define VULKAN_USE_DESCRIPTOR_POOL_MANAGER 1
|
|
#endif
|
|
|
|
#ifndef VULKAN_HAS_PHYSICAL_DEVICE_PROPERTIES2
|
|
#define VULKAN_HAS_PHYSICAL_DEVICE_PROPERTIES2 0
|
|
#endif
|
|
|
|
#ifndef VULKAN_ENABLE_DESKTOP_HMD_SUPPORT
|
|
#define VULKAN_ENABLE_DESKTOP_HMD_SUPPORT 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
|