vk: Rename gc_wrapper_t to gc_callback_t which is more relevant

This commit is contained in:
kd-11 2023-06-01 02:56:10 +03:00 committed by kd-11
parent f2f95a20a3
commit ac0c60b740
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ namespace vk
this->reset(subpool_index, 0);
};
auto cleanup_obj = std::make_unique<gc_wrapper_t>(release_func);
auto cleanup_obj = std::make_unique<gc_callback_t>(release_func);
vk::get_gc()->dispose(cleanup_obj);
}

View File

@ -10,15 +10,15 @@
namespace vk
{
struct gc_wrapper_t
struct gc_callback_t
{
std::function<void()> m_callback;
gc_wrapper_t(std::function<void()> callback)
gc_callback_t(std::function<void()> callback)
: m_callback(callback)
{}
~gc_wrapper_t()
~gc_callback_t()
{
if (m_callback)
{