-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance.hpp
29 lines (26 loc) · 989 Bytes
/
instance.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef INC_3DLOADERVK_INSTANCE_HPP
#define INC_3DLOADERVK_INSTANCE_HPP
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vulkan/vulkan.hpp>
#include <vector>
#include <iostream>
namespace vkinit
{
/**
Check whether the requested extensions and layers are supported.
\param extensions a list of extension names being requested.
\param layers a list of layer names being requested.
\param debug whether to log error messages.
\returns whether all of the extensions and layers are supported.
*/
bool supported(std::vector<const char*>& extensions, std::vector<const char*>& layers, bool debug);
/**
Create a Vulkan instance_.
\param debug whether the system is being run in debug mode.
\param applicationName the name of the application.
\returns the instance_ created.
*/
vk::Instance make_instance(bool debug, const char* applicationName);
}
#endif //INC_3DLOADERVK_INSTANCE_HPP