Blender V5.3
blender::gpu::MTLBufferPool Class Reference

#include <mtl_memory.hh>

Memory Management - MTLBufferPool and MTLSafeFreeList implementations

void init (id< MTLDevice > device)
 ~MTLBufferPool ()
gpu::MTLBuffer * allocate (uint64_t size, bool cpu_visible)
gpu::MTLBuffer * allocate_aligned (uint64_t size, uint alignment, bool cpu_visible)
gpu::MTLBuffer * allocate_with_data (uint64_t size, bool cpu_visible, const void *data=nullptr)
gpu::MTLBuffer * allocate_aligned_with_data (uint64_t size, uint alignment, bool cpu_visible, const void *data=nullptr)
bool free_buffer (gpu::MTLBuffer *buffer)
void update_memory_pools ()
bool has_completed_safe_lists ()
MTLSafeFreeList * get_current_safe_list ()
MTLSafeFreeList * acquire_current_safe_list ()
void begin_new_safe_list (bool only_if_should_flush=false)
void push_completed_safe_list (MTLSafeFreeList *list)

Detailed Description

Definition at line 375 of file mtl_memory.hh.

Constructor & Destructor Documentation

◆ ~MTLBufferPool()

blender::gpu::MTLBufferPool::~MTLBufferPool ( )

Definition at line 66 of file mtl_memory.mm.

Member Function Documentation

◆ acquire_current_safe_list()

MTLSafeFreeList * blender::gpu::MTLBufferPool::acquire_current_safe_list ( )

Definition at line 454 of file mtl_memory.mm.

References get_current_safe_list(), and lock.

Referenced by blender::gpu::present().

◆ allocate()

◆ allocate_aligned()

◆ allocate_aligned_with_data()

gpu::MTLBuffer * blender::gpu::MTLBufferPool::allocate_aligned_with_data ( uint64_t size,
uint alignment,
bool cpu_visible,
const void * data = nullptr )

◆ allocate_with_data()

gpu::MTLBuffer * blender::gpu::MTLBufferPool::allocate_with_data ( uint64_t size,
bool cpu_visible,
const void * data = nullptr )

◆ begin_new_safe_list()

◆ free_buffer()

◆ get_current_safe_list()

MTLSafeFreeList * blender::gpu::MTLBufferPool::get_current_safe_list ( )

Definition at line 448 of file mtl_memory.mm.

Referenced by acquire_current_safe_list(), begin_new_safe_list(), and free_buffer().

◆ has_completed_safe_lists()

bool blender::gpu::MTLBufferPool::has_completed_safe_lists ( )

Definition at line 463 of file mtl_memory.mm.

References lock.

Referenced by blender::gpu::MTLBackend::render_end().

◆ init()

void blender::gpu::MTLBufferPool::init ( id< MTLDevice > device)

Definition at line 40 of file mtl_memory.mm.

References begin_new_safe_list(), and blender::BLI_assert().

Referenced by blender::gpu::MTLContext::MTLContext().

◆ push_completed_safe_list()

void blender::gpu::MTLBufferPool::push_completed_safe_list ( MTLSafeFreeList * list)

◆ update_memory_pools()


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