A chunk of memory allocated on the GPU. More...
#include <gpuip.h>
Public Types | |
| enum | CopyOperation { COPY_TO_GPU, COPY_FROM_GPU } |
| enum | Type { UNSIGNED_BYTE, HALF, FLOAT } |
Supported data types. More... | |
|
typedef std::tr1::shared_ptr < Buffer > | Ptr |
| Smart pointer. | |
Public Member Functions | |
| Buffer (const std::string &name, Type type, unsigned int channels) | |
Data Fields | |
| const std::string | name |
| Unique identifying name. | |
| Type | type |
| unsigned int | channels |
| Channels of data per pixel. | |
A chunk of memory allocated on the GPU.
This class
| enum gpuip::Buffer::Type |
| unsigned int gpuip::Buffer::channels |
Channels of data per pixel.
A typical RGBA image has 4 channels. Gpuip buffers with 2 or 3 channels have not been tested as much as 1 or 4 channel buffers.
| const std::string gpuip::Buffer::name |
Unique identifying name.
Each buffer has a unique name. The buffer can still be called referenced as something else in a kernel.
1.6.1