A memory buffer The buffer class represents a memory buffer on a compute device. See also: context, command_queue const context& size_t cl_mem_flags read_write void * 0 Creates a new compute buffer in context containing size bytes. cl_buffer bool true Creates a new buffer object for buffer. If retain is true (the default) the reference count for buffer will be incremented. const buffer & Creates a new buffer object as a copy of other. buffer && Move-constructs a new buffer object from other. const buffer & Copies the buffer from other. buffer && Transfers the ownership of the buffer from other. Destroys the buffer object. size_t Returns the size of the buffer in bytes. T cl_mem_info Returns information about the buffer.