Blender V4.3
blender::gpu::MTLCircularBuffer Class Reference

#include <mtl_memory.hh>

Public Member Functions

MTLScratchBufferManager and MTLCircularBuffer implementation.
 MTLCircularBuffer (MTLContext &ctx, uint64_t initial_size, bool allow_grow)
 
 ~MTLCircularBuffer ()
 
MTLTemporaryBuffer allocate_range (uint64_t alloc_size)
 
MTLTemporaryBuffer allocate_range_aligned (uint64_t alloc_size, uint alignment)
 
void flush ()
 
void reset ()
 

Friends

class MTLScratchBufferManager
 

Detailed Description

Definition at line 208 of file mtl_memory.hh.

Constructor & Destructor Documentation

◆ MTLCircularBuffer()

blender::gpu::MTLCircularBuffer::MTLCircularBuffer ( MTLContext & ctx,
uint64_t initial_size,
bool allow_grow )

◆ ~MTLCircularBuffer()

blender::gpu::MTLCircularBuffer::~MTLCircularBuffer ( )

Definition at line 937 of file mtl_memory.mm.

Member Function Documentation

◆ allocate_range()

MTLTemporaryBuffer blender::gpu::MTLCircularBuffer::allocate_range ( uint64_t alloc_size)

Definition at line 942 of file mtl_memory.mm.

References allocate_range_aligned().

◆ allocate_range_aligned()

◆ flush()

void blender::gpu::MTLCircularBuffer::flush ( )

◆ reset()

void blender::gpu::MTLCircularBuffer::reset ( )

Friends And Related Symbol Documentation

◆ MTLScratchBufferManager

friend class MTLScratchBufferManager
friend

Definition at line 209 of file mtl_memory.hh.


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