Image interface for 2D images. More...
#include <cl.hpp>
Public Member Functions | |
Image2D (const Context &context, cl_mem_flags flags, ImageFormat format,::size_t width,::size_t height,::size_t row_pitch=0, void *host_ptr=NULL, cl_int *err=NULL) | |
Image2D () | |
Image2D (const Image2D &image2D) | |
Image2D (const cl_mem &image2D) | |
Image2D & | operator= (const Image2D &rhs) |
Image2D & | operator= (const cl_mem &rhs) |
cl::Image2D::Image2D | ( | const Context & | context, |
cl_mem_flags | flags, | ||
ImageFormat | format, | ||
::size_t | width, | ||
::size_t | height, | ||
::size_t | row_pitch = 0 , |
||
void * | host_ptr = NULL , |
||
cl_int * | err = NULL |
||
) | [inline] |
Definition at line 2354 of file cl.hpp.
{ cl_int error; object_ = ::clCreateImage2D( context(), flags,&format, width, height, row_pitch, host_ptr, &error); detail::errHandler(error, __CREATE_IMAGE2D_ERR); if (err != NULL) { *err = error; } }
cl::Image2D::Image2D | ( | ) | [inline] |
cl::Image2D::Image2D | ( | const Image2D & | image2D | ) | [inline] |
cl::Image2D::Image2D | ( | const cl_mem & | image2D | ) | [inline] |
Definition at line 2380 of file cl.hpp.
{ if (this != &rhs) { Image::operator=(rhs); } return *this; }
Image2D& cl::Image2D::operator= | ( | const cl_mem & | rhs | ) | [inline] |
Reimplemented from cl::Image.
Reimplemented in cl::Image2DGL.
Definition at line 2388 of file cl.hpp.
{ Image::operator=(rhs); return *this; }