Wrapper for an OpenCL Buffer.
More...
#include <CLBuffer.h>
|
| | CLBuffer () |
| | default constructor (creates null instance) More...
|
| |
| | CLBuffer (const CLBuffer &other) |
| | copy constructor (always performs shallow copy) More...
|
| |
| CLBuffer & | operator= (const CLBuffer &other) |
| | assignment operator (always performs a shallow copy) More...
|
| |
| | ~CLBuffer () |
| | destructor More...
|
| |
| void | copy (CLBuffer &dst, int len, int src_offset=0, int dst_offset=0) |
| | copies the content of this buffer into the given buffer More...
|
| |
| void | read (void *dst, int len, int offset=0, bool block=true) |
| | reads buffer from graphics memory into given destination pointer More...
|
| |
| void | write (const void *src, int len, int offset=0, bool block=true) |
| | writes source data into the graphics memory More...
|
| |
| bool | isNull () const |
| | checks whether buffer is null More...
|
| |
| | operator bool () const |
| | checks whether buffer is not null More...
|
| |
| | CLMemory (CLMemory const &other) |
| | CLMemory default copy constructor. More...
|
| |
| CLMemory & | operator= (CLMemory const &other) |
| | operator = default assignment operator More...
|
| |
| virtual | ~CLMemory () |
| | Destructor. More...
|
| |
| CLBuffer * | asCLBuffer () |
| | asCLBuffer Casting function to cast to CLBuffer pointer (reinterpret_cast) More...
|
| |
| CLImage2D * | asCLImage2D () |
| | asCLImage2D Casting function to cast to CLImage2D pointer (reinterpret_cast) More...
|
| |
| const std::vector< icl32s > | getDimensions () const |
| | returns the dimensions (3Dim-std::vector for x,y,z dimensions) More...
|
| |
| const icl64s | getSize () const |
| | returns total size of the memory (x*y*z) More...
|
| |
| const icl32s | getByteDepth () const |
| | returns the bytedepth of the used data type (e.g. float32 = 4byte) More...
|
| |
|
| | CLBuffer (cl::Context &context, cl::CommandQueue &cmdQueue, const string &accessMode, size_t size, const void *src=NULL) |
| | private constructor (buffer can only be created by CLProgram instances) More...
|
| |
| | CLBuffer (cl::Context &context, cl::CommandQueue &cmdQueue, const string &accessMode, size_t length, size_t byte_depth, const void *src=NULL) |
| |
| cl::Buffer & | getBuffer () |
| | provides access to the underlying cl-buffer More...
|
| |
| const cl::Buffer & | getBuffer () const |
| |
|
| Impl * | impl |
| | internal hidden implementation type More...
|
| |
Wrapper for an OpenCL Buffer.
Valid CLBuffer instances can only be created by a CLProgram instance.
- See also
- CLProgram for more details
◆ CLBuffer() [1/4]
| icl::utils::CLBuffer::CLBuffer |
( |
cl::Context & |
context, |
|
|
cl::CommandQueue & |
cmdQueue, |
|
|
const string & |
accessMode, |
|
|
size_t |
size, |
|
|
const void * |
src = NULL |
|
) |
| |
|
private |
private constructor (buffer can only be created by CLProgram instances)
◆ CLBuffer() [2/4]
| icl::utils::CLBuffer::CLBuffer |
( |
cl::Context & |
context, |
|
|
cl::CommandQueue & |
cmdQueue, |
|
|
const string & |
accessMode, |
|
|
size_t |
length, |
|
|
size_t |
byte_depth, |
|
|
const void * |
src = NULL |
|
) |
| |
|
private |
◆ CLBuffer() [3/4]
| icl::utils::CLBuffer::CLBuffer |
( |
| ) |
|
default constructor (creates null instance)
◆ CLBuffer() [4/4]
| icl::utils::CLBuffer::CLBuffer |
( |
const CLBuffer & |
other | ) |
|
copy constructor (always performs shallow copy)
◆ ~CLBuffer()
| icl::utils::CLBuffer::~CLBuffer |
( |
| ) |
|
◆ copy()
| void icl::utils::CLBuffer::copy |
( |
CLBuffer & |
dst, |
|
|
int |
len, |
|
|
int |
src_offset = 0, |
|
|
int |
dst_offset = 0 |
|
) |
| |
copies the content of this buffer into the given buffer
◆ getBuffer() [1/2]
| cl::Buffer& icl::utils::CLBuffer::getBuffer |
( |
| ) |
|
|
private |
provides access to the underlying cl-buffer
◆ getBuffer() [2/2]
| const cl::Buffer& icl::utils::CLBuffer::getBuffer |
( |
| ) |
const |
|
private |
◆ isNull()
| bool icl::utils::CLBuffer::isNull |
( |
| ) |
const |
|
inline |
checks whether buffer is null
◆ operator bool()
| icl::utils::CLBuffer::operator bool |
( |
| ) |
const |
|
inline |
checks whether buffer is not null
◆ operator=()
assignment operator (always performs a shallow copy)
◆ read()
| void icl::utils::CLBuffer::read |
( |
void * |
dst, |
|
|
int |
len, |
|
|
int |
offset = 0, |
|
|
bool |
block = true |
|
) |
| |
reads buffer from graphics memory into given destination pointer
◆ write()
| void icl::utils::CLBuffer::write |
( |
const void * |
src, |
|
|
int |
len, |
|
|
int |
offset = 0, |
|
|
bool |
block = true |
|
) |
| |
writes source data into the graphics memory
◆ CLDeviceContext
◆ CLKernel
for tight integration with CLKernel instances
◆ CLProgram
for tight integration with CLProgram instances
◆ impl
| Impl* icl::utils::CLBuffer::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/CLBuffer.h