Reached shader lessons. Stopping to refactor code.
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#define GLFW_INCLUDE_VULKAN
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "Logger.h"
|
||||
#include "VulkanDebugManager.h"
|
||||
#include "VulkanDeviceManager.h"
|
||||
#include "GlfwWindowManager.h"
|
||||
|
||||
#define GLFW_INCLUDE_VULKAN
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
const std::vector<const char*> ValidationLayers = {
|
||||
"VK_LAYER_KHRONOS_validation"
|
||||
@@ -31,11 +33,23 @@ public:
|
||||
VulkanInstanceManager(VulkanInstanceManager&& Other) noexcept;
|
||||
VulkanInstanceManager& operator=(VulkanInstanceManager&& Other) noexcept;
|
||||
|
||||
void Initialize(const FVulkanConfig& Config);
|
||||
// void Initialize(const FVulkanConfig& Config);
|
||||
void Initialize(bool bEnableValidationLayers);
|
||||
void SetupDebug();
|
||||
void SetupDevice();
|
||||
|
||||
// void Initialize(VulkanDebugManager& inDebugManager, bool inValidationEnabled);
|
||||
void Cleanup();
|
||||
|
||||
bool IsInitialized() const { return Instance != VK_NULL_HANDLE; }
|
||||
|
||||
const std::vector<const char*>& GetValidationLayers() const
|
||||
{
|
||||
return ValidationLayers;
|
||||
}
|
||||
|
||||
const VkInstance GetInstance() const { return Instance; }
|
||||
|
||||
private:
|
||||
std::unique_ptr<VulkanDebugManager> VkDebugManager = nullptr;
|
||||
std::unique_ptr<VulkanDeviceManager> VkDeviceManager = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user