Jetson Inference
DNN Vision Library
glBuffer.h File Reference
#include "cudaUtility.h"
#include "cuda_gl_interop.h"

Go to the source code of this file.

Classes

class  glBuffer
 OpenGL buffer with CUDA interoperability. More...
 

Macros

#define GL_VERTEX_BUFFER   GL_ARRAY_BUFFER
 Alias for vertex buffers. More...
 
#define GL_INDEX_BUFFER   GL_ELEMENT_ARRAY_BUFFER
 Alias for index buffers. More...
 
#define GL_MAP_CPU   0x1
 Map the buffer to CPU address space. More...
 
#define GL_MAP_CUDA   0x2
 Map the buffer to CUDA address space. More...
 
#define GL_FROM_CPU   0x3
 Copy the buffer from CPU to OpenGL. More...
 
#define GL_FROM_CUDA   0x4
 Copy the buffer from CUDA to OpenGL. More...
 
#define GL_TO_CPU   0x5
 Copy the buffer to CPU from OpenGL. More...
 
#define GL_TO_CUDA   0x6
 Copy the buffer to CUDA from OpenGL. More...
 
#define GL_WRITE_DISCARD   (GL_READ_WRITE + 0xff)
 Map the buffer as write-only and discard previous contents. More...
 
#define GL_WRITE_ONLY   GL_WRITE_ONLY_ARB
 Map the buffer with write-only access. More...
 
#define GL_READ_ONLY   GL_READ_ONLY_ARB
 Map the buffer with read-only access. More...
 
#define GL_READ_WRITE   GL_READ_WRITE_ARB
 Map the buffer with read/write access. More...