#include <OgreMetalDiscardBufferManager.h>
◆ MetalDiscardBuffer()
◆ map()
void* Ogre::MetalDiscardBuffer::map |
( |
bool |
noOverwrite | ) |
|
Returns a pointer that maps to the beginning of this buffer to begin writing.
- Parameters
-
noOverwrite | When true, noOverwrite is slow |
- Returns
◆ unmap()
void Ogre::MetalDiscardBuffer::unmap |
( |
void |
| ) |
|
◆ getAlignment()
uint16 Ogre::MetalDiscardBuffer::getAlignment |
( |
void |
| ) |
const |
|
inline |
◆ getSizeBytes()
size_t Ogre::MetalDiscardBuffer::getSizeBytes |
( |
void |
| ) |
const |
|
inline |
Size of the buffer, may be bigger than requested due to 4-byte alignment required by Metal.
◆ getOffset()
size_t Ogre::MetalDiscardBuffer::getOffset |
( |
void |
| ) |
const |
|
inline |
◆ getBufferName()
id<MTLBuffer> Ogre::MetalDiscardBuffer::getBufferName |
( |
size_t & |
outOffset | ) |
|
Returns the actual API buffer, but first sets mLastFrameUsed as we assume you're calling this function to use the buffer in the GPU.
- Parameters
-
outOffset | Out. Guaranteed to be written. Used to point to the start of our data in the internal ring buffer we've allocated. |
- Returns
- The MTLBuffer in question.
◆ getBlockStart()
size_t Ogre::MetalDiscardBuffer::getBlockStart |
( |
void |
| ) |
const |
|
inline |
◆ getBlockSize()
size_t Ogre::MetalDiscardBuffer::getBlockSize |
( |
void |
| ) |
const |
|
inline |
◆ getOwner()
The documentation for this class was generated from the following file: