Voxel
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenCL::State Struct Reference

OpenCL state class. More...

#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().

Detailed Description

OpenCL state class.

The constructor attempts to create the following three objects:

  1. An OpenCL device identifier (for the first GPU found in the system).
  2. An OpenCL context (for this device).
  3. An OpenCL command queue (also for this device).

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.

Todo:

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.


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