#include <glcuda.h>
Public Member Functions | |
void | Bind () const |
GlBufferCudaPtr (GlBufferType buffer_type, GLsizeiptr size_bytes, unsigned int cudause=cudaGraphicsMapFlagsNone, GLenum gluse=GL_DYNAMIC_DRAW) | |
void | Unbind () const |
void | Upload (const GLvoid *data, GLsizeiptr size_bytes, GLintptr offset=0) |
~GlBufferCudaPtr () | |
Public Attributes | |
GLuint | bo |
GlBufferType | buffer_type |
cudaGraphicsResource * | cuda_res |
Private Member Functions | |
GlBufferCudaPtr (const GlBufferCudaPtr &) |
pangolin::GlBufferCudaPtr::GlBufferCudaPtr | ( | GlBufferType | buffer_type, |
GLsizeiptr | size_bytes, | ||
unsigned int | cudause = cudaGraphicsMapFlagsNone , |
||
GLenum | gluse = GL_DYNAMIC_DRAW |
||
) | [inline] |
pangolin::GlBufferCudaPtr::~GlBufferCudaPtr | ( | ) | [inline] |
pangolin::GlBufferCudaPtr::GlBufferCudaPtr | ( | const GlBufferCudaPtr & | ) | [inline, private] |
void pangolin::GlBufferCudaPtr::Bind | ( | ) | const [inline] |
void pangolin::GlBufferCudaPtr::Unbind | ( | ) | const [inline] |
void pangolin::GlBufferCudaPtr::Upload | ( | const GLvoid * | data, |
GLsizeiptr | size_bytes, | ||
GLintptr | offset = 0 |
||
) | [inline] |
cudaGraphicsResource* pangolin::GlBufferCudaPtr::cuda_res |