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

Image interface for 3D images. More...

#include <cl.hpp>

Inheritance diagram for cl::Image3D:
cl::Image cl::Memory cl::detail::Wrapper< cl_mem > cl::Image3DGL

List of all members.

Public Member Functions

 Image3D (const Context &context, cl_mem_flags flags, ImageFormat format,::size_t width,::size_t height,::size_t depth,::size_t row_pitch=0,::size_t slice_pitch=0, void *host_ptr=NULL, cl_int *err=NULL)
 Image3D ()
 Image3D (const Image3D &image3D)
 Image3D (const cl_mem &image3D)
Image3Doperator= (const Image3D &rhs)
Image3Doperator= (const cl_mem &rhs)

Detailed Description

Image interface for 3D images.

Definition at line 2448 of file cl.hpp.


Constructor & Destructor Documentation

cl::Image3D::Image3D ( const Context context,
cl_mem_flags  flags,
ImageFormat  format,
::size_t  width,
::size_t  height,
::size_t  depth,
::size_t  row_pitch = 0,
::size_t  slice_pitch = 0,
void *  host_ptr = NULL,
cl_int *  err = NULL 
) [inline]

Definition at line 2451 of file cl.hpp.

    {
        cl_int error;
        object_ = ::clCreateImage3D(
            context(), flags, &format, width, height, depth, row_pitch,
            slice_pitch, host_ptr, &error);

        detail::errHandler(error, __CREATE_IMAGE3D_ERR);
        if (err != NULL) {
            *err = error;
        }
    }
cl::Image3D::Image3D ( ) [inline]

Definition at line 2474 of file cl.hpp.

{ }
cl::Image3D::Image3D ( const Image3D image3D) [inline]

Definition at line 2476 of file cl.hpp.

: Image(image3D) { }
cl::Image3D::Image3D ( const cl_mem &  image3D) [inline]

Definition at line 2478 of file cl.hpp.

: Image(image3D) { }

Member Function Documentation

Image3D& cl::Image3D::operator= ( const Image3D rhs) [inline]

Definition at line 2480 of file cl.hpp.

    {
        if (this != &rhs) {
            Image::operator=(rhs);
        }
        return *this;
    }
Image3D& cl::Image3D::operator= ( const cl_mem &  rhs) [inline]

Reimplemented from cl::Image.

Reimplemented in cl::Image3DGL.

Definition at line 2488 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