OpenCL C++ Wrapper API 1.1
 All Classes Namespaces Files Functions Variables Typedefs Defines
Public Member Functions
cl::Image2D Class Reference

Image interface for 2D images. More...

#include <cl.hpp>

Inheritance diagram for cl::Image2D:
cl::Image cl::Memory cl::detail::Wrapper< cl_mem > cl::Image2DGL

List of all members.

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)
Image2Doperator= (const Image2D &rhs)
Image2Doperator= (const cl_mem &rhs)

Detailed Description

Image interface for 2D images.

Definition at line 2351 of file cl.hpp.


Constructor & Destructor Documentation

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]

Definition at line 2374 of file cl.hpp.

{ }
cl::Image2D::Image2D ( const Image2D image2D) [inline]

Definition at line 2376 of file cl.hpp.

: Image(image2D) { }
cl::Image2D::Image2D ( const cl_mem &  image2D) [inline]

Definition at line 2378 of file cl.hpp.

: Image(image2D) { }

Member Function Documentation

Image2D& cl::Image2D::operator= ( const Image2D rhs) [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;
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines