18 lines
502 B
C++
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);
|
|
|
|
|
|
}
|
|
|
|
}
|