Wrapper for an OpenCL Image2D.
More...
#include <CLImage2D.h>
|
| CLImage2D (cl::Context &context, cl::CommandQueue &cmdQueue, const string &accessMode, const size_t width, const size_t height, int depth, int num_channel, const void *src=NULL, std::map< uint32_t, std::set< uint32_t > > const &supported_formats=std::map< uint32_t, std::set< uint32_t > >()) |
| private constructor (image can only be created by CLProgram instances) More...
|
|
cl::Image2D | getImage2D () |
| provides access to the underlying cl-Image2D object More...
|
|
const cl::Image2D | getImage2D () const |
|
|
Impl * | impl |
| internal hidden implementation type More...
|
|
Wrapper for an OpenCL Image2D.
Valid CLImage2D instances can only be created by a CLProgram instance.
- See also
- CLProgram for more details
◆ CLImage2D() [1/3]
icl::utils::CLImage2D::CLImage2D |
( |
cl::Context & |
context, |
|
|
cl::CommandQueue & |
cmdQueue, |
|
|
const string & |
accessMode, |
|
|
const size_t |
width, |
|
|
const size_t |
height, |
|
|
int |
depth, |
|
|
int |
num_channel, |
|
|
const void * |
src = NULL , |
|
|
std::map< uint32_t, std::set< uint32_t > > const & |
supported_formats = std::map< uint32_t, std::set< uint32_t > >() |
|
) |
| |
|
private |
private constructor (image can only be created by CLProgram instances)
◆ CLImage2D() [2/3]
icl::utils::CLImage2D::CLImage2D |
( |
| ) |
|
default constructor (creates null instance)
◆ CLImage2D() [3/3]
icl::utils::CLImage2D::CLImage2D |
( |
const CLImage2D & |
other | ) |
|
copy constructor (always performs shallow copy)
◆ ~CLImage2D()
icl::utils::CLImage2D::~CLImage2D |
( |
| ) |
|
◆ getChannelSize()
icl32s icl::utils::CLImage2D::getChannelSize |
( |
| ) |
const |
|
inline |
◆ getHeight()
icl32s icl::utils::CLImage2D::getHeight |
( |
| ) |
const |
|
inline |
◆ getImage2D() [1/2]
cl::Image2D icl::utils::CLImage2D::getImage2D |
( |
| ) |
|
|
private |
provides access to the underlying cl-Image2D object
◆ getImage2D() [2/2]
const cl::Image2D icl::utils::CLImage2D::getImage2D |
( |
| ) |
const |
|
private |
◆ getNumChannels()
icl32s icl::utils::CLImage2D::getNumChannels |
( |
| ) |
const |
|
inline |
◆ getWidth()
icl32s icl::utils::CLImage2D::getWidth |
( |
| ) |
const |
|
inline |
◆ isNull()
bool icl::utils::CLImage2D::isNull |
( |
| ) |
const |
|
inline |
checks whether image is null
◆ operator bool()
icl::utils::CLImage2D::operator bool |
( |
| ) |
const |
|
inline |
checks whether image is not null
◆ operator=()
assignment operator (always performs a shallow copy)
◆ read()
reads image from graphics memory into given destination pointer
region defines the accessed image area. When no region is provided the complete image is addressed(initial width, height and (0, 0) as origin
◆ write()
writes source data into the graphics memory
region defines the accessed image area. When no region is provided the complete image is addressed(initial width, height and (0, 0) as origin
◆ CLDeviceContext
◆ CLKernel
for tight integration with CLKernel instances
◆ CLProgram
for tight integration with CLProgram instances
◆ impl
Impl* icl::utils::CLImage2D::impl |
|
private |
internal hidden implementation type
internal implemetation
The documentation for this class was generated from the following file:
- /Users/alneuman/vm/icl/ICLUtils/src/ICLUtils/CLImage2D.h