Вынес управление VkDescriptorSetLayout и VkPipeline в отдельные классы

This commit is contained in:
Jiga228
2026-06-25 20:08:11 +07:00
parent 2a57a30e29
commit 5f3c5d4fc1
11 changed files with 277 additions and 196 deletions
@@ -1,5 +1,8 @@
#include "RenderPass.hpp"
#include <stdexcept>
#include <string>
#include "DeviceFunctions/DeviceFunctions.hpp"
#include "Swapchain.hpp"
#include "Device.hpp"
@@ -47,6 +50,6 @@ VkObjects::RenderPass::RenderPass(const Device& device, const Swapchain& swapcha
VkObjects::RenderPass::~RenderPass()
{
if (render_pass_ != VK_NULL_HANDLE)
if (render_pass_ != nullptr)
vkDestroyRenderPass(device_.get_native(), render_pass_, nullptr);
}