vulkan-project/renderer.cpp
2022-10-07 23:30:44 +02:00

18 lines
502 B
C++

#include "renderer.hpp"
#include <vulkan/vulkan_core.h>
namespace gz::vk {
void Renderer::cleanup_(){
vkFreeCommandBuffers(vk.device, vk.commandPoolGraphics, static_cast<uint32_t>(commandBuffers.size()), commandBuffers.data());
vkDestroyBuffer(vk.device, indexBuffer, nullptr);
vkFreeMemory(vk.device, indexBufferMemory, nullptr);
vkDestroyBuffer(vk.device, vertexBuffer, nullptr);
vkFreeMemory(vk.device, vertexBufferMemory, nullptr);
}
}