|
| AsyncTicket (BufferPacked *creator, StagingBuffer *stagingBuffer, size_t elementStart, size_t elementCount) |
|
virtual | ~AsyncTicket () |
|
const void * | map (void) |
| Maps the buffer for CPU access.
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
virtual bool | queryIsTransferDone (void) |
|
void | unmap (void) |
| Unmaps the pointer mapped with map().
|
|
In Ogre 2.0 data structures, reading data from GPU back to CPU is asynchronous.
@See BufferPacked::readRequest to generate a ticket. While the async transfer is being performed, you should be doing something else.
- Use @queryIsTransferDone to query if the transfer has finished. Beware not all APIs support querying async transfer status. In those cases there is no reliable way to determine when the transfer is done. An almost safe bet is to wait two frames before mapping.
- Call @BufferPackeddisposeTicket when you're done with this ticket.