Вынес управление VkDescriptorSetLayout и VkPipeline в отдельные классы
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user