Blender
V3.3
|
#include <mtl_memory.hh>
Public Member Functions | |
MTLBuffer wrapper class implementation. | |
void | flush () |
bool | requires_flush () |
Public Attributes | |
id< MTLBuffer > | metal_buffer |
void * | data |
uint64_t | buffer_offset |
uint64_t | size |
MTLResourceOptions | options |
Definition at line 182 of file mtl_memory.hh.
void blender::gpu::MTLBufferRange::flush | ( | ) |
Definition at line 605 of file mtl_memory.mm.
References BLI_assert, buffer_offset, blender::math::length(), metal_buffer, requires_flush(), and size.
bool blender::gpu::MTLBufferRange::requires_flush | ( | ) |
Definition at line 599 of file mtl_memory.mm.
Referenced by flush().
uint64_t blender::gpu::MTLBufferRange::buffer_offset |
Definition at line 185 of file mtl_memory.hh.
Referenced by blender::gpu::MTLCircularBuffer::allocate_range_aligned(), flush(), and blender::gpu::MTLTexture::update_sub().
void* blender::gpu::MTLBufferRange::data |
Definition at line 184 of file mtl_memory.hh.
Referenced by blender::gpu::MTLCircularBuffer::allocate_range_aligned(), and blender::gpu::MTLTexture::update_sub().
Definition at line 183 of file mtl_memory.hh.
Referenced by blender::gpu::MTLCircularBuffer::allocate_range_aligned(), flush(), blender::gpu::MTLScratchBufferManager::scratch_buffer_allocate_range_aligned(), and blender::gpu::MTLTexture::update_sub().
MTLResourceOptions blender::gpu::MTLBufferRange::options |
Definition at line 187 of file mtl_memory.hh.
Referenced by blender::gpu::MTLCircularBuffer::allocate_range_aligned().
uint64_t blender::gpu::MTLBufferRange::size |
Definition at line 186 of file mtl_memory.hh.
Referenced by blender::gpu::MTLCircularBuffer::allocate_range_aligned(), flush(), and blender::gpu::MTLScratchBufferManager::scratch_buffer_allocate_range_aligned().