|
| Context (const VECTOR_CLASS< Device > &devices, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *,::size_t, void *)=NULL, void *data=NULL, cl_int *err=NULL) |
| Constructs a context including a list of specified devices. More...
|
|
| Context (const Device &device, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *,::size_t, void *)=NULL, void *data=NULL, cl_int *err=NULL) |
|
| Context (cl_device_type type, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *,::size_t, void *)=NULL, void *data=NULL, cl_int *err=NULL) |
| Constructs a context including all or a subset of devices of a specified type. More...
|
|
| Context (const Context &ctx) |
| Copy constructor to forward copy to the superclass correctly. Required for MSVC. More...
|
|
| Context () |
| Default constructor - initializes to NULL. More...
|
|
__CL_EXPLICIT_CONSTRUCTORS | Context (const cl_context &context) |
| Constructor from cl_context - takes ownership. More...
|
|
template<typename T > |
cl_int | getInfo (cl_context_info name, T *param) const |
| Wrapper for clGetContextInfo(). More...
|
|
template<cl_int name> |
detail::param_traits< detail::cl_context_info, name >::param_type | getInfo (cl_int *err=NULL) const |
| Wrapper for clGetContextInfo() that returns by value. More...
|
|
cl_int | getSupportedImageFormats (cl_mem_flags flags, cl_mem_object_type type, VECTOR_CLASS< ImageFormat > *formats) const |
| Gets a list of supported image formats. More...
|
|
Context & | operator= (const Context &ctx) |
| Copy assignment to forward copy to the superclass correctly. Required for MSVC. More...
|
|
Context & | operator= (const cl_context &rhs) |
| Assignment operator from cl_context - takes ownership. More...
|
|
cl_type | operator() () const |
|
cl_type & | operator() () |
|
Wrapper< cl_type > & | operator= (const Wrapper< cl_type > &rhs) |
|
Wrapper< cl_type > & | operator= (const cl_type &rhs) |
|
| Wrapper () |
|
| Wrapper (const cl_type &obj) |
|
| Wrapper (const Wrapper< cl_type > &rhs) |
|
| ~Wrapper () |
|
Class interface for cl_context.
Deprecated APIs for 1.2
- Note
- Copies of these objects are shallow, meaning that the copy will refer to the same underlying cl_context as the original. For details, see clRetainContext() and clReleaseContext().
- See also
- cl_context
Definition at line 2454 of file cl.hpp.