LampyEngine
 
Загрузка...
Поиск...
Не найдено
Структура DeletionQueue

Manages a queue of cleanup functions to be executed during object destruction. Подробнее...

#include <VulkanRenderer.h>

Открытые члены

void push_function (std::function< void()> &&function)
 Adds a function to the deletion queue.
 
void flush ()
 Executes all stored deletion functions in reverse order and clears the queue.
 

Открытые атрибуты

std::vector< std::function< void()> > deletors
 List of deletion functions.
 

Подробное описание

Manages a queue of cleanup functions to be executed during object destruction.

Методы

◆ push_function()

void DeletionQueue::push_function ( std::function< void()> && function)
inline

Adds a function to the deletion queue.

Аргументы
functionFunction to be executed upon flushing.

Объявления и описания членов структуры находятся в файле: