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

Copyright (c) 2016-present, Facebook, Inc. More...

#include <GLTexture.h>

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}
 Copyright (c) 2016-present, Facebook, Inc. More...
 
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

Copyright (c) 2016-present, Facebook, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 22 of file GLTexture.h.

Field Documentation

const GLTexture::Type GLTexture::FP16 = {GL_RGBA16F, GL_RGBA, GL_HALF_FLOAT}
static

Copyright (c) 2016-present, Facebook, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 58 of file GLTexture.h.


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