Blender  V3.3
Friends | List of all members
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 198 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 730 of file mtl_memory.mm.

Member Function Documentation

◆ allocate_range()

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

Definition at line 735 of file mtl_memory.mm.

References allocate_range_aligned().

◆ allocate_range_aligned()

MTLTemporaryBuffer blender::gpu::MTLCircularBuffer::allocate_range_aligned ( uint64_t  alloc_size,
uint  alignment 
)

◆ flush()

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

◆ reset()

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

Friends And Related Function Documentation

◆ MTLScratchBufferManager

friend class MTLScratchBufferManager
friend

Definition at line 199 of file mtl_memory.hh.


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