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

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

#include <GLContext.h>

Inheritance diagram for GLContext:
AndroidGLContext IOSGLContext

Public Member Functions

virtual void set_context ()=0
 
virtual void reset_context ()=0
 
virtual void flush_context ()=0
 
bool halfFloatTextureSupported ()
 
void setTextureAllocator (std::function< const GLTexture *(const int width, const int height)> textureAllocator)
 
std::function< const GLTexture *(const int width, const int height)> getTextureAllocator ()
 

Static Public Member Functions

static void initGLContext ()
 
static GLContextgetGLContext ()
 
static void deleteGLContext ()
 
static bool GL_EXT_texture_border_clamp_defined ()
 

Protected Attributes

bool half_float_supported = true
 

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 GLContext.h.


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