gpuip::Buffer Struct Reference

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.

Detailed Description

A chunk of memory allocated on the GPU.

This class


Member Enumeration Documentation

Operation when copying memory between CPU and GPU

Enumerator:
COPY_TO_GPU 

Copy data from CPU to GPU

COPY_FROM_GPU 

Copy data from GPU to CPU

Supported data types.

Enumerator:
UNSIGNED_BYTE 

8 bits per channel. Used in png, jpeg, tga, tiff formats

HALF 

16 bits per channel. Used in exr images.

FLOAT 

32 bits per channel. Used in exr images, typically when half is not supported in the current environemnt.


Field Documentation

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.


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 21 Aug 2014 for gpuip by  doxygen 1.6.1