|
|
|
#ifndef TYPES_H
|
|
|
|
#define TYPES_H
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(Q_OS_ANDROID)
|
|
|
|
#define VK_USE_PLATFORM_ANDROID_KHR // Enable Vulkan support for Android
|
|
|
|
#elif defined(Q_OS_LINUX)
|
|
|
|
#define VK_USE_PLATFORM_XCB_KHR // Enable Vulkan support for Linux (XCB)
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
//#define VK_USE_PLATFORM_
|
|
|
|
//#define GLFW_INCLUDE_VULKAN
|
|
|
|
//#include <GLFW/glfw3.h>
|
|
|
|
//#define GLFW_EXPOSE_NATIVE_
|
|
|
|
//#include <GLFW/glfw3native.h>
|
|
|
|
|
|
|
|
#define GLM_FORCE_RADIANS
|
|
|
|
//#define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
|
|
|
|
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
|
|
|
|
#include <stb_image/stb_image.h>
|
|
|
|
#include <tiny_obj_loader/tiny_obj_loader.h>
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
struct SwapChainSupportDetails {
|
|
|
|
VkSurfaceCapabilitiesKHR capabilities;
|
|
|
|
std::vector<VkSurfaceFormatKHR> formats;
|
|
|
|
std::vector<VkPresentModeKHR> presentModes;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TYPES_H
|