Public Types | |
enum | eErr { TEST_OK = CL_SUCCESS, TEST_FAILED = -100 } |
Public Member Functions | |
~ocl () | |
void | clean () |
cl_int | loadProgram (const std::string &srcPath, bool quiet=true) |
Static Public Member Functions | |
static void | printPlatformInfo () |
static void | printDeviceInfo () |
static ocl *& | instance () |
static cl_uint | countDevices (const oclPlatform &pl, const cl_device_type devType) |
static cl_uint | isDeviceSupported (cl_device_type devType) |
static cl_int | isExtensionSupported (const char *extString, const cl_device_type type) |
static void * | next_frame (size_t **size) |
static void * | last_frame (int *size) |
Static Public Attributes | |
static StrDict | errMsgs [] |
Protected Attributes | |
cl_int | _currPlatform |
cl_int | _currDevice |
oclContext | _context |
oclCmdQ | _queue |
oclProgram | _program |
oclKernel | _kernel |
oclEvent | _event |
cl_int | _err |
oclBufferGL | _bufferGL |
cl_uint | _gridsize [2] |
Friends | |
cl_int | initOpenCL (host_info_id host, cl_device_type devType, cl_bool supportGL) |
cl_int | loadDataCL () |
cl_int | displayCL () |
cl_int | bindOpenCL (cl_uint GLpbo, cl_int w, cl_int h) |
void | shutdownOpenCL (void) |
enum ocl::eErr |
ocl::~ocl | ( | ) |
void ocl::clean | ( | ) |
cl_uint ocl::countDevices | ( | const oclPlatform & | pl, | |
const cl_device_type | devType | |||
) | [static] |
cl_uint ocl::isDeviceSupported | ( | cl_device_type | devType | ) | [static] |
cl_int ocl::isExtensionSupported | ( | const char * | extString, | |
const cl_device_type | type | |||
) | [static] |
void * ocl::last_frame | ( | int * | size | ) | [static] |
cl_int ocl::loadProgram | ( | const std::string & | srcPath, | |
bool | quiet = true | |||
) |
void * ocl::next_frame | ( | size_t ** | size | ) | [static] |
void ocl::printDeviceInfo | ( | ) | [static] |
void ocl::printPlatformInfo | ( | ) | [static] |
cl_int bindOpenCL | ( | cl_uint | GLpbo, | |
cl_int | w, | |||
cl_int | h | |||
) | [friend] |
cl_int displayCL | ( | ) | [friend] |
cl_int initOpenCL | ( | host_info_id | host, | |
cl_device_type | devType, | |||
cl_bool | supportGL | |||
) | [friend] |
cl_int loadDataCL | ( | ) | [friend] |
oclBufferGL ocl::_bufferGL [protected] |
oclContext ocl::_context [protected] |
cl_int ocl::_currDevice [protected] |
cl_int ocl::_currPlatform [protected] |
cl_int ocl::_err [protected] |
oclEvent ocl::_event [protected] |
cl_uint ocl::_gridsize[2] [protected] |
oclKernel ocl::_kernel [protected] |
oclProgram ocl::_program [protected] |
oclCmdQ ocl::_queue [protected] |
StrDict ocl::errMsgs [static] |
{ {TEST_FAILED, "Test failed at startup!\n"} }