Skip to content
Michael Chaten edited this page Oct 13, 2010 · 1 revision

License:
Apache 2.0

struct Buffer;
A buffer reperesents memory stored on the opencl device

cl_mem _mem;
The opencl memory structure buffer is based on

this(Context context, cl_mem_flags flags, void[] host_ptr);
Create a buffer with the given flags and from the given data.

this(cl_mem mem);
Create a buffer from an existing opencl buffer

Clone this wiki locally