! \stuct ImageFormat * \brief Adds constructors and member functions for cl_image_format. * * \see cl_image_format */
| 1992 | * \see cl_image_format |
| 1993 | */ |
| 1994 | struct ImageFormat : public cl_image_format |
| 1995 | { |
| 1996 | //! \brief Default constructor - performs no initialization. |
| 1997 | ImageFormat(){} |
| 1998 | |
| 1999 | //! \brief Initializing constructor. |
| 2000 | ImageFormat(cl_channel_order order, cl_channel_type type) |
| 2001 | { |
| 2002 | image_channel_order = order; |
| 2003 | image_channel_data_type = type; |
| 2004 | } |
| 2005 | |
| 2006 | //! \brief Assignment operator. |
| 2007 | ImageFormat& operator = (const ImageFormat& rhs) |
| 2008 | { |
| 2009 | if (this != &rhs) { |
| 2010 | this->image_channel_data_type = rhs.image_channel_data_type; |
| 2011 | this->image_channel_order = rhs.image_channel_order; |
| 2012 | } |
| 2013 | return *this; |
| 2014 | } |
| 2015 | }; |
| 2016 | |
| 2017 | /*! \brief Class interface for cl_device_id. |
| 2018 | * |
nothing calls this directly
no outgoing calls
no test coverage detected