#include <opencl_state.h>
Public Member Functions | |
cl_device_id | DeviceID () const |
Returns OpenCL device identifier of first GPU in the system. | |
cl_context | Context () const |
Returns OpenCL context for the device returned by DeviceID(). | |
cl_command_queue | Queue () const |
Returns OpenCL command queue for the device returned by DeviceID(). |
OpenCL state class.
The constructor attempts to create the following three objects:
If any of the creation calls fail, than an OpenCL Exception will be thrown. The three contained objects can be accessed via the DeviceID
, Context
and Queue
accessor functions, respectively.
Check endian-ness.
Check supported image formats (in particular, RGBA32 and RGB16, the two supported in color.h).
Definition at line 60 of file opencl_state.h.