Contains OpenCL::Converter class. More...
Go to the source code of this file.
Classes | |
| struct | OpenCL::Converter< t_Type > |
| Converts data for transmission to OpenCL device. More... | |
| struct | OpenCL::Converter< std::array< t_Type, t_Size > > |
| Converter specialization for fixed-size arrays. More... | |
Namespaces | |
| namespace | OpenCL |
| Contains State, Program, Converter and Exception classes. | |
Macros | |
| #define | OPENCL_CONVERTER_H |
| #define | OPENCL_COMMA , |
| #define | OPENCL_CONVERTER1(ss, dd) |
Generates converter specialization which converts the host type ss to the OpenCL type dd. | |
| #define | OPENCL_CONVERTER2(ss, dd) |
Generates converter specialization which converts the host 2D vector type ss to the OpenCL 2D vector type dd. | |
| #define | OPENCL_CONVERTER3(ss, dd) |
Generates converter specialization which converts the host 3D vector type ss to the OpenCL 3D vector type dd. | |
| #define | OPENCL_CONVERTER4(ss, dd) |
Generates converter specialization which converts the host 4D vector type ss to the OpenCL 4D vector type dd. | |
| #define | OPENCL_CONVERTER8(ss, dd) |
Generates converter specialization which converts the host 8D vector type ss to the OpenCL 8D vector type dd. | |
| #define | OPENCL_CONVERTER16(ss, dd) |
Generates converter specialization which converts the host 16D vector type ss to the OpenCL 16D vector type dd. | |
| #define | OPENCL_CONVERTER(ss, dd) |
Generates converter specializations which convert the host type ss to the OpenCL type dd, and likewise Vector< ss, n > to ddn for . | |
Functions | |
| template<typename t_Type > | |
| Converter< t_Type >::Type | OpenCL::Convert (t_Type const &source) |
| Helper function which calls Converter::Convert for the type of its argument. | |
Contains OpenCL::Converter class.
In addition to the Converter default specialization, this file also defines specializations for fixed-size arrays (using std::array for the host type), builtin integer and floating-point types, and vectors (using Vector for the host type, e.g. Vector< float, 3 > maps to cl_float3).
Definition in file opencl_converter.h.
| #define OPENCL_CONVERTER | ( | ss, | |
| dd | |||
| ) |
Generates converter specializations which convert the host type ss to the OpenCL type dd, and likewise Vector< ss, n > to ddn for
.
Definition at line 207 of file opencl_converter.h.
| #define OPENCL_CONVERTER1 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host type ss to the OpenCL type dd.
Definition at line 142 of file opencl_converter.h.
| #define OPENCL_CONVERTER16 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host 16D vector type ss to the OpenCL 16D vector type dd.
Definition at line 196 of file opencl_converter.h.
| #define OPENCL_CONVERTER2 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host 2D vector type ss to the OpenCL 2D vector type dd.
Definition at line 152 of file opencl_converter.h.
| #define OPENCL_CONVERTER3 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host 3D vector type ss to the OpenCL 3D vector type dd.
Definition at line 163 of file opencl_converter.h.
| #define OPENCL_CONVERTER4 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host 4D vector type ss to the OpenCL 4D vector type dd.
Definition at line 174 of file opencl_converter.h.
| #define OPENCL_CONVERTER8 | ( | ss, | |
| dd | |||
| ) |
Generates converter specialization which converts the host 8D vector type ss to the OpenCL 8D vector type dd.
Definition at line 185 of file opencl_converter.h.
1.8.1.2