# ocl_core::enqueue_write_image - Rust
API documentation for the Rust `enqueue_write_image` fn in crate `ocl_core`.
Keywords: rust, rustlang, rust-lang, enqueue_write_image

# Function ocl_core::enqueue_write_image [−] [src]

    pub unsafe fn enqueue_write_image<T, M, En, Ewl>(
        command_queue: &CommandQueue,
        image: M,
        block: bool,
        origin: [usize; 3],
        region: [usize; 3],
        input_row_pitch_bytes: usize,
        input_slc_pitch_bytes: usize,
        data: &[T],
        wait_list: Option<Ewl>,
        new_event: Option<En>
    ) -> OclCoreResult<()> where
        T: OclPrm,
        En: ClNullEventPtr,
        Ewl: ClWaitListPtr,
        M: AsMem<T> + MemCmdRw,

Enqueues a command to write to an image or image array object from host memory.

## Safety

Caller must ensure that `data` lives until the read is complete. Use `new_event` to monitor it (use [`core::EventList::last_clone`] if passing an event list as `new_event`).

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)