Blender V4.5
blender::gpu::TimelineResources< Item > Class Template Reference

#include <vk_resource_pool.hh>

Inherits blender::Vector< std::pair< TimelineValue, Item > >.

Public Member Functions

void append_timeline (TimelineValue timeline, Item item)
 
void update_timeline (TimelineValue timeline)
 
int64_t size () const
 
bool is_empty () const
 
template<typename Deleter >
void remove_old (TimelineValue current_timeline, Deleter deleter)
 

Friends

class VKDiscardPool
 

Detailed Description

template<typename Item>
class blender::gpu::TimelineResources< Item >

Definition at line 22 of file vk_resource_pool.hh.

Member Function Documentation

◆ append_timeline()

◆ is_empty()

template<typename Item >
bool blender::gpu::TimelineResources< Item >::is_empty ( ) const
inline

◆ remove_old()

template<typename Item >
template<typename Deleter >
void blender::gpu::TimelineResources< Item >::remove_old ( TimelineValue current_timeline,
Deleter deleter )
inline

Remove all items that are used in a timeline before or equal to the current_timeline.

Definition at line 50 of file vk_resource_pool.hh.

References blender::Vector< std::pair< TimelineValue, Item > >::remove().

Referenced by blender::gpu::VKDiscardPool::destroy_discarded_resources(), and blender::gpu::VKDevice::submission_runner().

◆ size()

template<typename Item >
int64_t blender::gpu::TimelineResources< Item >::size ( ) const
inline

◆ update_timeline()

template<typename Item >
void blender::gpu::TimelineResources< Item >::update_timeline ( TimelineValue timeline)
inline

Definition at line 31 of file vk_resource_pool.hh.

Referenced by blender::gpu::VKDiscardPool::move_data().

Friends And Related Symbol Documentation

◆ VKDiscardPool

template<typename Item >
friend class VKDiscardPool
friend

Definition at line 23 of file vk_resource_pool.hh.


The documentation for this class was generated from the following file: