#include <ShMemory.hpp>
Inheritance diagram for SH::ShHostStorage:
Public Member Functions | |
ShHostStorage (ShMemory *memory, int length) | |
Internally managed storage. | |
ShHostStorage (ShMemory *memory, int length, void *data) | |
Externally managed storage. | |
~ShHostStorage () | |
Destruct this storage. | |
std::string | id () const |
Return an id uniquely identifying the _type_ of this storage This is used for looking up transfer functions. | |
int | length () const |
Return the length (in bytes) of data represented by this storage. | |
const void * | data () const |
Return the location of the storage's data on the host. | |
void * | data () |
Return the location of the storage's data on the host. |
You probably want to use ShHostMemory to construct this.
Definition at line 207 of file ShMemory.hpp.
|
Destruct this storage. If the memory was allocated internally, it will be freed automatically. Definition at line 250 of file ShMemory.cpp. |
|
Return an id uniquely identifying the _type_ of this storage This is used for looking up transfer functions. e.g.: host, opengl:texture, sm:texture Implements SH::ShStorage. Definition at line 257 of file ShMemory.cpp. |