Caffe2 - C++ API
A deep learning, cross platform ML framework
Data Structures | Public Member Functions | Static Public Attributes | Protected Attributes
GLTexture Class Referenceabstract
Inheritance diagram for GLTexture:
GLPlainTexture IOSGLTexture

Data Structures

struct  Type
 

Public Member Functions

 GLTexture (const Type &type, int width, int height, int stride, bool use_padding, GLint filter, GLint wrap)
 
 GLTexture (const Type &type, int width, int height, bool use_padding, GLint filter, GLint wrap)
 
virtual GLuint name () const =0
 
virtual GLenum target () const =0
 
virtual bool flipped () const =0
 
virtual void map_read (std::function< void(const void *buffer, size_t width, size_t height, size_t stride, size_t channels, const Type &type)> process) const
 
virtual void map_load (std::function< void(void *buffer, size_t width, size_t height, size_t stride, size_t channels, const Type &type)> process) const
 
void loadData (const void *pixels) const
 

Static Public Attributes

static const Type FP16 = {GL_RGBA16F, GL_RGBA, GL_HALF_FLOAT}
 
static const Type FP16_COMPAT = {GL_RG32UI, GL_RG_INTEGER, GL_UNSIGNED_INT}
 
static const Type UI8 = {GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE}
 

Protected Attributes

const Type_type
 
const GLsizei _width
 
const GLsizei _height
 
const GLsizei _stride
 
const GLsizei _channels
 
const bool _use_padding
 
GLint _filter
 
GLint _wrap
 
GLuint _textureId
 

Detailed Description

Definition at line 6 of file GLTexture.h.


The documentation for this class was generated from the following files: