Former-commit-id: d0635e2727d1f2f52fe8a03ff0530134645f1b1d [formerly fc5f88194171efde1e68387154db661072bfdf90] Former-commit-id: 6e42212b86524334a8324b1e49230303b49f969f
42 lines
920 B
C++
42 lines
920 B
C++
// Copyright (C) 2016 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine - Vulkan"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_VULKAN_HPP
|
|
#define NAZARA_VULKAN_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
#include <Nazara/Core/Initializer.hpp>
|
|
#include <Nazara/Core/ParameterList.hpp>
|
|
#include <Nazara/Vulkan/Config.hpp>
|
|
#include <Nazara/Vulkan/VkInstance.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
class NAZARA_VULKAN_API Vulkan
|
|
{
|
|
public:
|
|
Vulkan() = delete;
|
|
~Vulkan() = delete;
|
|
|
|
static Vk::Instance& GetInstance();
|
|
|
|
static bool Initialize();
|
|
|
|
static bool IsInitialized();
|
|
|
|
static void SetParameters(const ParameterList& parameters);
|
|
|
|
static void Uninitialize();
|
|
|
|
private:
|
|
static Vk::Instance s_instance;
|
|
static ParameterList s_initializationParameters;
|
|
static unsigned int s_moduleReferenceCounter;
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_VULKAN_HPP
|