vOOlkan
An object oriented approach to Vulkan
Instance.h
Go to the documentation of this file.
1#ifndef VULKAN_INSTANCE
2#define VULKAN_INSTANCE
3
4#define GLFW_INCLUDE_VULKAN
5#include <GLFW/glfw3.h>
6#include <string>
7#include <vector>
8
9
10namespace Vulkan { class Instance; }
11
16 public:
17
18 Instance(const std::string& appName = "");
19
23 ~Instance();
24
25 Instance(const Instance&) = delete;
26 Instance(Instance&&) = delete;
27 Instance& operator=(const Instance&) = delete;
29
30 const VkInstance& operator+() const;
31
32 private:
33 void checkValidationLayerSupport(std::vector<const char*> validationLayers);
34
35
36 VkInstance instance;
37};
38
39#endif
Definition: Instance.h:15
Instance & operator=(const Instance &)=delete
const VkInstance & operator+() const
Definition: Instance.cpp:67
Instance(const Instance &)=delete
Instance(const std::string &appName="")
Definition: Instance.cpp:8
Instance(Instance &&)=delete
Instance & operator=(Instance &&)=delete
~Instance()
Cleans up the instance resources.
Definition: Instance.cpp:60
Types of queue families.
Definition: Animations.h:17