// Copyright (C) 2016 Jérôme Leclercq // This file is part of the "Nazara Engine - Vulkan Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_VULKAN_HPP #define NAZARA_VULKAN_HPP #include #include #include #include #include #include #include #include #include #include namespace Nz { class NAZARA_VULKANRENDERER_API Vulkan { public: Vulkan() = delete; ~Vulkan() = delete; static Vk::DeviceHandle CreateDevice(VkPhysicalDevice gpu, const Vk::Surface& surface, UInt32* presentableFamilyQueue); static Vk::Instance& GetInstance(); static const std::vector& GetPhysicalDevices(); static const Vk::PhysicalDevice& GetPhysicalDeviceInfo(VkPhysicalDevice physDevice); static bool Initialize(); static bool IsInitialized(); static Vk::DeviceHandle SelectDevice(VkPhysicalDevice gpu, const Vk::Surface& surface, UInt32* presentableFamilyQueue); static void SetParameters(const ParameterList& parameters); static void Uninitialize(); private: static std::list s_devices; static std::vector s_physDevices; static Vk::Instance s_instance; static ParameterList s_initializationParameters; static unsigned int s_moduleReferenceCounter; }; } #endif // NAZARA_VULKAN_HPP