![]() |
ImFusion SDK 4.3
|
#include <ImFusion/CL/ClContext.h>
OpenCL context class. More...
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 |
ClPlatform * | getPlatform () const |
template<typename T> | |
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 |