src/core/Buffer.cpp
void Buffer::destroy() {
    if (buffer) {
        vkDestroyBuffer(device, buffer, nullptr);
    }
    if (memory) {
        vkFreeMemory(device, memory, nullptr);
    }
}
/**
* Release all Vulkan resources held by this buffer
*/
Release all Vulkan resources held by this buffer
Release all Vulkan resources held by this buffer
void Buffer::destroy() {
    if (buffer) {
        vkDestroyBuffer(device, buffer, nullptr);
    }
    if (memory) {
        vkFreeMemory(device, memory, nullptr);
    }
}
void Buffer :: destroy ( ) { if ( buffer ) { vkDestroyBuffer ( device , buffer , nullptr ) ; } if ( memory ) { vkFreeMemory ( device , memory , nullptr ) ; } }
Release all Vulkan resources held by this buffer
Release all Vulkan resources held by this buffer