![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
In Ogre 2.0 data structures, reading data from GPU back to CPU is asynchronous. More...
#include <OgreAsyncTicket.h>
Public Member Functions | |
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.
Ogre::AsyncTicket::AsyncTicket | ( | BufferPacked * | creator, |
StagingBuffer * | stagingBuffer, | ||
size_t | elementStart, | ||
size_t | elementCount | ||
) |
|
virtual |
Maps the buffer for CPU access.
Will stall if transfer from GPU memory to staging area hasn't finished yet.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Reimplemented in Ogre::D3D11AsyncTicket, Ogre::GL3PlusAsyncTicket, Ogre::GLES2AsyncTicket, Ogre::MetalAsyncTicket, and Ogre::NULLAsyncTicket.