OpenCL:Buffers
lastmod 2026-11-10created 2018-01-012 edits
An OpenCL buffer is a one-dimensional memory object (cl_mem) allocated in device memory to exchange data between the host and the device. It is created with clCreateBuffer by specifying its size and access flags, copied to and from host memory with clEnqueueWriteBuffer and clEnqueueReadBuffer, and passed as a kernel argument to be accessed through a __global pointer. Unlike image objects, it is an untyped byte array, so it can hold arbitrary structs and arrays.
See also
Favorite site
References
-
File: ↩