24 #ifndef CU_TEX_IMAGE_H
25 #define CU_TEX_IMAGE_H
27 #include <cuda_runtime.h>
54 const cudaChannelFormatDesc& channelFmtDesc);
56 const cudaChannelFormatDesc& channelFmtDesc);
void CopyFromPBO(int width, int height, GLuint pbo)
void CopyFromHost(const void *buf)
CuTexImage(int width, int height, int nchannel, GLuint pbo)
void CopyToHost(void *buf)
virtual void SetImageSize(int width, int height)
void CopyToHost(void *buf, int stream)
virtual bool InitTexture(int width, int height, int nchannel=1)
CuTexObj BindTexture2D(const cudaTextureDesc &textureDesc, const cudaChannelFormatDesc &channelFmtDesc)
int CopyToPBO(GLuint pbo)
CuTexObj BindTexture(const cudaTextureDesc &textureDesc, const cudaChannelFormatDesc &channelFmtDesc)
cudaTextureObject_t handle