30 #ifdef ICL_HAVE_OPENCL 57 CLBuffer(cl::Context& context, cl::CommandQueue &cmdQueue,
58 const string &accessMode,
size_t size,
const void *src=NULL) ;
60 CLBuffer(cl::Context& context, cl::CommandQueue &cmdQueue,
const string &accessMode,
61 size_t length,
size_t byte_depth,
const void *src=NULL) ;
64 cl::Buffer &getBuffer();
65 const cl::Buffer &getBuffer()
const;
85 void copy(
CLBuffer &dst,
int len,
int src_offset = 0,
int dst_offset = 0) ;
88 void read(
void *dst,
int len,
int offset = 0,
bool block =
true) ;
91 void write(
const void *src,
int len,
int offset = 0,
bool block =
true) ;
99 operator bool()
const {
undocument this line if you encounter any issues!
Definition: Any.h:37
bool isNull() const
checks whether buffer is null
Definition: CLBuffer.h:94
Definition: CLDeviceContext.h:43
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
Wrapper for an OpenCL Kernel.
Definition: CLKernel.h:72
Impl * impl
internal hidden implementation type
Definition: CLBuffer.h:53
Wrapper for an OpenCL Buffer.
Definition: CLBuffer.h:52
The CLDeviceContext class allows preparation of the device used for CLPrograms.
Definition: CLDeviceContext.h:61
The CLMemory class is a base class for CLBuffer and CLImage2D.
Definition: CLMemory.h:48
void copy(const T *src, const T *srcEnd, T *dst)
moves data from source to destination array (no casting possible)
Definition: CoreFunctions.h:216
Main class for OpenCL based accelleration.
Definition: CLProgram.h:259