Transfer Buffer. More...
#include <staging_buffer.h>
Public Member Functions | |
virtual void * | data ()=0 |
Retrieves a pointer to the mapped buffer. More... | |
virtual void | lock (const GraphicContextPtr &gc, BufferAccess access)=0 |
Maps buffer into system memory. More... | |
virtual void | unlock ()=0 |
Unmaps buffer. More... | |
virtual void | upload_data (const GraphicContextPtr &gc, int offset, const void *data, int size)=0 |
Uploads data to transfer buffer. More... | |
Static Public Member Functions | |
static std::shared_ptr< StagingBuffer > | create (const GraphicContextPtr &gc, int size, BufferUsage usage=usage_dynamic_copy) |
Constructs a transfer buffer. More... | |
static std::shared_ptr< StagingBuffer > | create (const GraphicContextPtr &gc, const void *data, int size, BufferUsage usage=usage_dynamic_copy) |
Transfer Buffer.
|
static |
Constructs a transfer buffer.
|
static |
|
pure virtual |
Retrieves a pointer to the mapped buffer.
|
pure virtual |
Maps buffer into system memory.
|
pure virtual |
Unmaps buffer.
|
pure virtual |
Uploads data to transfer buffer.