2016-02-21 16:50:49 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
#define VK_USE_PLATFORM_WIN32_KHR
|
2018-08-18 03:13:25 +02:00
|
|
|
#elif defined(__APPLE__)
|
|
|
|
|
#define VK_USE_PLATFORM_MACOS_MVK
|
|
|
|
|
#else
|
2016-02-21 16:50:49 +01:00
|
|
|
#define VK_USE_PLATFORM_XLIB_KHR
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-01-28 13:32:45 +01:00
|
|
|
#include "restore_new.h"
|
2016-02-21 16:50:49 +01:00
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
|
#include <vulkan/vk_sdk_platform.h>
|
2017-01-28 13:32:45 +01:00
|
|
|
#include "define_new_memleakdetect.h"
|
2016-02-21 16:50:49 +01:00
|
|
|
#include "Utilities/types.h"
|
|
|
|
|
|
2019-04-12 23:25:44 +02:00
|
|
|
// TODO: Remove when packages catch up, ubuntu is stuck at 1.1.73 (bionic) and 1.1.82 (cosmic)
|
|
|
|
|
// Do we still use libvulkan-dev package on travis??????
|
|
|
|
|
#if VK_HEADER_VERSION < 95
|
|
|
|
|
|
|
|
|
|
typedef struct VkPhysicalDeviceFloat16Int8FeaturesKHR {
|
|
|
|
|
VkStructureType sType;
|
|
|
|
|
void* pNext;
|
|
|
|
|
VkBool32 shaderFloat16;
|
|
|
|
|
VkBool32 shaderInt8;
|
|
|
|
|
} VkPhysicalDeviceFloat16Int8FeaturesKHR;
|
|
|
|
|
|
|
|
|
|
#define VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR VkStructureType(1000082000)
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-02-21 16:50:49 +01:00
|
|
|
namespace vk
|
|
|
|
|
{
|
|
|
|
|
void init();
|
|
|
|
|
}
|