Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes
GLImage< T > Class Template Reference

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

#include <GLImage.h>

Public Member Functions

 GLImage (int _width, int _height, int _channels, int _tile_x, int _tile_y, std::function< const GLTexture *(int slice)> texture_loader)
 
 GLImage (int _width, int _height, int _channels, int _tile_x, int _tile_y, bool _destroy, std::function< const GLTexture *(int slice)> texture_loader)
 

Static Public Member Functions

static constexpr int channels_to_slices (int channels, int tile_x, int tile_y)
 
static const std::vector< const GLTexture * > allocate_textures (int slices, std::function< const GLTexture *(int slice)> texture_loader)
 

Data Fields

const int width
 
const int height
 
const int channels
 
const int data_size
 
const int tile_x
 
const int tile_y
 
const int texture_width
 
const int texture_height
 
const int slices
 
const std::vector< const GLTexture * > textures
 

Static Public Attributes

static constexpr int slice_channels = 4
 

Detailed Description

template<typename T>
class GLImage< T >

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 27 of file GLImage.h.


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