Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
GLPlainTexture Class Reference

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

#include <GLPlainTexture.h>

Inheritance diagram for GLPlainTexture:
GLTexture

Public Member Functions

 GLPlainTexture (const Type &type, const void *input, GLsizei width, GLsizei height, bool use_padding=false, GLint filter=GL_NEAREST, GLint wrap=GL_CLAMP_TO_EDGE)
 
 GLPlainTexture (const Type &type, const GLuint textureID, GLsizei width, GLsizei height, bool use_padding=false, GLint filter=GL_NEAREST, GLint wrap=GL_CLAMP_TO_EDGE)
 
GLuint name () const
 
GLenum target () const
 
bool flipped () const
 
- Public Member Functions inherited from GLTexture
 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 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
 

Additional Inherited Members

- Static Public Attributes inherited from GLTexture
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 inherited from GLTexture
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 23 of file GLPlainTexture.h.


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