Caffe2 - C++ API
A deep learning, cross platform ML framework
GLPBO.h
1 
2 #pragma once
3 
4 #include "GLTexture.h"
5 #include <functional>
6 
7 class GLPBO {
8  GLuint pboId = 0;
9  GLuint pboSize = 0;
10  GLuint pboFrameBuffer = 0;
11 
12  ~GLPBO();
13 
14  static GLPBO* pboContext;
15 
16  public:
17  void mapTextureData(GLuint _textureId,
18  GLsizei _width,
19  GLsizei _height,
20  GLsizei _stride,
21  GLsizei _channels,
22  const GLTexture::Type& type,
23  std::function<void(const void* buffer,
24  size_t width,
25  size_t height,
26  size_t stride,
27  size_t channels,
28  const GLTexture::Type& type)> process);
29 
30  static GLPBO* getContext();
31 };
Definition: GLPBO.h:7