Добавил namespace VkObjectsдля обёрток. Вынес управление VkSurface в отдельный класс
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "VkObjects/Instance.hpp"
|
||||
#include "VkObjects/Surface.hpp"
|
||||
|
||||
class Camera;
|
||||
class GPU_GarbageCollector;
|
||||
@@ -71,8 +72,9 @@ class UwURenderEngine : public RenderEngineBase
|
||||
std::weak_ptr<Camera> active_camera_;
|
||||
std::mutex m_active_camera_;
|
||||
|
||||
Instance instance_;
|
||||
VkSurfaceKHR surface_ = VK_NULL_HANDLE;
|
||||
VkObjects::Instance instance_;
|
||||
VkObjects::Surface surface_;
|
||||
//VkSurfaceKHR surface_ = VK_NULL_HANDLE;
|
||||
VkPhysicalDevice physical_device_ = VK_NULL_HANDLE;
|
||||
VkDevice device_ = VK_NULL_HANDLE;
|
||||
VkQueue graphics_queue_ = VK_NULL_HANDLE;
|
||||
@@ -114,7 +116,6 @@ class UwURenderEngine : public RenderEngineBase
|
||||
VkShaderModule create_shader_module(const std::string& code) const;
|
||||
static std::vector<uint32_t> get_unique_family_indices(const QueueFamilyIndices& indices);
|
||||
|
||||
void create_surface();
|
||||
void pick_physical_device();
|
||||
void create_logical_device();
|
||||
void create_swapchain();
|
||||
|
||||
Reference in New Issue
Block a user