ImFusion C++ SDK 4.4.0
ImFusion::ClContext Class Reference

#include <ImFusion/CL/ClContext.h>

OpenCL context class. More...

Detailed Description

OpenCL context class.

Public Types

enum  DeviceType {
  DEFAULT = (1 << 0) , CPU = (1 << 1) , GPU = (1 << 2) , ACCELERATOR = (1 << 3) ,
  ALL = 0xFFFFFFFF
}

Public Member Functions

 ClContext (const ClPlatform &platform, const std::vector< ClDevice * > &devices, bool shareGl=false, void(*notifyCb)(const char *errinfo, const void *private_info, size_t cb, void *userData)=0, void *userData=0)
 ClContext (const ClPlatform &platform, unsigned long long deviceType, bool shareGl=false, void(*notifyCb)(const char *errinfo, const void *private_info, size_t cb, void *userData)=0, void *userData=0)
bool isValid () const
void * context () const
unsigned int referenceCount () const
unsigned int numDevices () const
std::vector< ClDevice * > devices () const
ClPlatformgetPlatform () const
template<typename T>
getContextInfo (unsigned int name, int *ret=0) const
template<typename T>
std::vector< T > getContextInfoVector (unsigned int name, int *ret=0) const

Protected Attributes

ImplData * m_d

The documentation for this class was generated from the following file:
  • ImFusion/CL/ClContext.h
Search Tab / S to search, Esc to close