OGRE-Next
4.0.0unstable
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 () |
Maps the buffer for CPU access. More... | |
virtual bool | queryIsTransferDone () |
void | unmap () |
Unmaps the pointer mapped with map(). More... | |
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 |
const void* Ogre::AsyncTicket::map | ( | ) |
Maps the buffer for CPU access.
Will stall if transfer from GPU memory to staging area hasn't finished yet.
|
inlinevirtual |
void Ogre::AsyncTicket::unmap | ( | ) |
Unmaps the pointer mapped with map().