GlobeEngine
ge::GPUProgramFactory Class Reference

#include <GPUProgramFactory.h>

Public Types

enum  DeviceType { GPU, CPU }
 

Public Member Functions

 GPUProgramFactory ()
 
 ~GPUProgramFactory ()
 
void clear ()
 
void destroy ()
 
void create ()
 
GPUProgramload (std::string _inputPath)
 
void createKernel (GPUProgram *_inputProgram, std::string _kernelName)
 
std::string readFile (std::string fileName)
 
void getOpenGLError (std::string _input)
 
void displayPlatformInfo (cl_platform_id firstPlatformID)
 
void displayPlatformSpecificInfo (cl_platform_id firstPlatformID, cl_platform_info _info, std::string _comment)
 
void displayDeviceInfo (cl_device_id _deviceID)
 
void displayDeviceSpecificInfo (cl_device_id _deviceID, cl_device_info _info, std::string _comment, int _type)
 
cl_mem createBuffer (cl_mem_flags _flags, size_t _size, void *_host_ptr, cl_int *_errcode_ret)
 
void setKernelArg (cl_kernel _kernel, cl_uint _arg_index, size_t _arg_size, const void *_arg_value)
 
void enqueueNDRangeKernel (cl_kernel _kernel, cl_uint _work_dim, const size_t *_global_work_offset, const size_t *_global_work_size, const size_t *_local_work_size, cl_uint _num_events_in_wait_list, const cl_event *_event_wait_list, cl_event *_event)
 
void enqueueReadBuffer (cl_mem _buffer, cl_bool _blocking_read, size_t _offset, size_t _cb, void *_ptr, cl_uint _num_events_in_wait_list, const cl_event *_event_wait_list, cl_event *_event)
 
void finishCommands ()
 
void cleanup ()
 
void cleanupProgram (GPUProgram *_input)
 
void resetCommandQueue ()
 
cl_command_queue getCommandQueue ()
 
cl_context getContext ()
 

Member Enumeration Documentation

Enumerator
GPU 
CPU 

Constructor & Destructor Documentation

ge::GPUProgramFactory::GPUProgramFactory ( )
inline
ge::GPUProgramFactory::~GPUProgramFactory ( )
inline

Member Function Documentation

void ge::GPUProgramFactory::cleanup ( )
void ge::GPUProgramFactory::cleanupProgram ( GPUProgram _input)
void ge::GPUProgramFactory::clear ( )
void ge::GPUProgramFactory::create ( )
cl_mem ge::GPUProgramFactory::createBuffer ( cl_mem_flags  _flags,
size_t  _size,
void _host_ptr,
cl_int *  _errcode_ret 
)
void ge::GPUProgramFactory::createKernel ( GPUProgram _inputProgram,
std::string  _kernelName 
)
void ge::GPUProgramFactory::destroy ( )
void ge::GPUProgramFactory::displayDeviceInfo ( cl_device_id  _deviceID)
void ge::GPUProgramFactory::displayDeviceSpecificInfo ( cl_device_id  _deviceID,
cl_device_info  _info,
std::string  _comment,
int  _type 
)
void ge::GPUProgramFactory::displayPlatformInfo ( cl_platform_id  firstPlatformID)
void ge::GPUProgramFactory::displayPlatformSpecificInfo ( cl_platform_id  firstPlatformID,
cl_platform_info  _info,
std::string  _comment 
)
void ge::GPUProgramFactory::enqueueNDRangeKernel ( cl_kernel  _kernel,
cl_uint  _work_dim,
const size_t *  _global_work_offset,
const size_t *  _global_work_size,
const size_t *  _local_work_size,
cl_uint  _num_events_in_wait_list,
const cl_event *  _event_wait_list,
cl_event *  _event 
)
void ge::GPUProgramFactory::enqueueReadBuffer ( cl_mem  _buffer,
cl_bool  _blocking_read,
size_t  _offset,
size_t  _cb,
void _ptr,
cl_uint  _num_events_in_wait_list,
const cl_event *  _event_wait_list,
cl_event *  _event 
)
void ge::GPUProgramFactory::finishCommands ( )
cl_command_queue ge::GPUProgramFactory::getCommandQueue ( )
cl_context ge::GPUProgramFactory::getContext ( )
void ge::GPUProgramFactory::getOpenGLError ( std::string  _input)
GPUProgram * ge::GPUProgramFactory::load ( std::string  _inputPath)
std::string ge::GPUProgramFactory::readFile ( std::string  fileName)
void ge::GPUProgramFactory::resetCommandQueue ( )
void ge::GPUProgramFactory::setKernelArg ( cl_kernel  _kernel,
cl_uint  _arg_index,
size_t  _arg_size,
const void _arg_value 
)

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