Blender V5.0
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 207 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 958 of file mtl_memory.mm.

Member Function Documentation

◆ allocate_range()

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

Definition at line 963 of file mtl_memory.mm.

References allocate_range_aligned().

◆ allocate_range_aligned()

◆ flush()

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

◆ reset()

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

◆ MTLScratchBufferManager

friend class MTLScratchBufferManager
friend

Definition at line 208 of file mtl_memory.hh.

References MTLScratchBufferManager.

Referenced by MTLScratchBufferManager.


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