OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
Metal doesn't "map". More...
#include <OgreMetalDynamicBuffer.h>
Public Member Functions | |
MetalDynamicBuffer (id< MTLBuffer > vboName, size_t vboSize) | |
~MetalDynamicBuffer () | |
void | flush (size_t ticket, size_t start, size_t count) |
Flushes the region of the given ticket. start is 0-based. More... | |
id< MTLBuffer > | getVboName (void) const |
void *RESTRICT_ALIAS_RETURN | map (size_t start, size_t count, size_t &outTicket) |
void | unmap (size_t ticket) |
Unmaps given ticket (got from. More... | |
Metal doesn't "map".
You can directly access the unsynchronized contents For performance we keep many buffers as one big buffer, but for compatibility reasons (with GL3/DX10 HW) we treat them as separate buffers.
Ogre::MetalDynamicBuffer::MetalDynamicBuffer | ( | id< MTLBuffer > | vboName, |
size_t | vboSize | ||
) |
Ogre::MetalDynamicBuffer::~MetalDynamicBuffer | ( | ) |
void Ogre::MetalDynamicBuffer::flush | ( | size_t | ticket, |
size_t | start, | ||
size_t | count | ||
) |
Flushes the region of the given ticket. start is 0-based.
|
inline |
References RESTRICT_ALIAS_RETURN.
void* RESTRICT_ALIAS_RETURN Ogre::MetalDynamicBuffer::map | ( | size_t | start, |
size_t | count, | ||
size_t & | outTicket | ||
) |
void Ogre::MetalDynamicBuffer::unmap | ( | size_t | ticket | ) |
Unmaps given ticket (got from.