[][src]Function opencl3::memory::create_pipe

pub fn create_pipe(
    context: *mut c_void,
    flags: u64,
    pipe_packet_size: u32,
    pipe_max_packets: u32
) -> Result<*mut c_void, i32>

Create an OpenCL pipe object for a context.
Calls clCreatePipe to create an OpenCL pipe object.
CL_VERSION_2_0

  • context - a valid OpenCL context.
  • flags - a bit-field used to specify allocation and usage information about the image memory object being created, see: Memory Flags.
  • pipe_packet_size - the size in bytes of a pipe packet.
  • pipe_max_packets -the maximum number of packets the pipe can hold.
  • properties - currently must be NULL.

returns a Result containing the new OpenCL pipe object or the error code from the OpenCL C API function.