very crude first triangle pre version
This commit is contained in:
parent
649fdb795f
commit
8d5f6e8a3e
22 changed files with 1789 additions and 5 deletions
33
engine/instance.h
Normal file
33
engine/instance.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vector>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
namespace Engine {
|
||||
|
||||
class Engine;
|
||||
class Window;
|
||||
class Surface;
|
||||
|
||||
class Instance {
|
||||
friend class Engine;
|
||||
friend class Surface;
|
||||
public:
|
||||
Instance(Engine* engine);
|
||||
~Instance();
|
||||
|
||||
std::vector<VkPhysicalDevice> enumeratePhysicalDevices() const;
|
||||
|
||||
private:
|
||||
void setupDebugMessenger();
|
||||
|
||||
private:
|
||||
bool validationLayersEnabledAndSupported;
|
||||
Engine* engine;
|
||||
VkInstance vk;
|
||||
VkDebugUtilsMessengerEXT debugMessenger;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue