#include <CuTexImage.h>
Public Member Functions | |
void | BindTexture (textureReference &texRef) |
void | BindTexture2D (textureReference &texRef) |
void | CopyFromHost (const void *buf) |
void | CopyFromPBO (int width, int height, GLuint pbo) |
void | CopyToHost (void *buf) |
void | CopyToHost (void *buf, int stream) |
int | CopyToPBO (GLuint pbo) |
void | CopyToTexture2D () |
CuTexImage () | |
CuTexImage (int width, int height, int nchannel, GLuint pbo) | |
int | GetDataSize () |
int | GetImgHeight () |
int | GetImgWidth () |
virtual void | InitTexture (int width, int height, int nchannel=1) |
void | InitTexture2D () |
virtual void | SetImageSize (int width, int height) |
virtual | ~CuTexImage () |
Static Public Member Functions | |
static int | DebugCopyToTexture2D () |
Protected Attributes | |
void * | _cuData |
cudaArray * | _cuData2D |
GLuint | _fromPBO |
int | _imgHeight |
int | _imgWidth |
int | _numBytes |
int | _numChannel |
int | _texHeight |
int | _texWidth |
Friends | |
class | ProgramCU |
class | PyramidCU |
Definition at line 35 of file CuTexImage.h.
CuTexImage::CuTexImage | ( | int | width, |
int | height, | ||
int | nchannel, | ||
GLuint | pbo | ||
) |
virtual CuTexImage::~CuTexImage | ( | ) | [virtual] |
void CuTexImage::BindTexture | ( | textureReference & | texRef | ) | [inline] |
void CuTexImage::BindTexture2D | ( | textureReference & | texRef | ) | [inline] |
void CuTexImage::CopyFromHost | ( | const void * | buf | ) |
void CuTexImage::CopyFromPBO | ( | int | width, |
int | height, | ||
GLuint | pbo | ||
) |
void CuTexImage::CopyToHost | ( | void * | buf | ) |
void CuTexImage::CopyToHost | ( | void * | buf, |
int | stream | ||
) |
int CuTexImage::CopyToPBO | ( | GLuint | pbo | ) |
static int CuTexImage::DebugCopyToTexture2D | ( | ) | [static] |
int CuTexImage::GetDataSize | ( | ) | [inline] |
Definition at line 63 of file CuTexImage.h.
int CuTexImage::GetImgHeight | ( | ) | [inline] |
Definition at line 62 of file CuTexImage.h.
int CuTexImage::GetImgWidth | ( | ) | [inline] |
Definition at line 61 of file CuTexImage.h.
virtual void CuTexImage::InitTexture | ( | int | width, |
int | height, | ||
int | nchannel = 1 |
||
) | [virtual] |
virtual void CuTexImage::SetImageSize | ( | int | width, |
int | height | ||
) | [virtual] |
friend class ProgramCU [friend] |
Definition at line 68 of file CuTexImage.h.
friend class PyramidCU [friend] |
Definition at line 69 of file CuTexImage.h.
void* CuTexImage::_cuData [protected] |
Definition at line 38 of file CuTexImage.h.
cudaArray* CuTexImage::_cuData2D [protected] |
Definition at line 39 of file CuTexImage.h.
GLuint CuTexImage::_fromPBO [protected] |
Definition at line 46 of file CuTexImage.h.
int CuTexImage::_imgHeight [protected] |
Definition at line 43 of file CuTexImage.h.
int CuTexImage::_imgWidth [protected] |
Definition at line 42 of file CuTexImage.h.
int CuTexImage::_numBytes [protected] |
Definition at line 41 of file CuTexImage.h.
int CuTexImage::_numChannel [protected] |
Definition at line 40 of file CuTexImage.h.
int CuTexImage::_texHeight [protected] |
Definition at line 45 of file CuTexImage.h.
int CuTexImage::_texWidth [protected] |
Definition at line 44 of file CuTexImage.h.