[][src]Trait tension::Interop

pub trait Interop: Copy {
    type Dev: OclPrm + Copy;
    fn to_dev(self) -> Self::Dev;
fn from_dev(x: Self::Dev) -> Self; fn load_from_buffer(dst: &mut [Self], src: &Buffer<Self::Dev>) { ... }
fn store_to_buffer(dst: &mut Buffer<Self::Dev>, src: &[Self]) { ... } }

Types that can be transformed from host representation to device one and back.

Associated Types

type Dev: OclPrm + Copy

Loading content...

Required methods

fn to_dev(self) -> Self::Dev

Transform from host to device type.

fn from_dev(x: Self::Dev) -> Self

Transform from device to host type.

Loading content...

Provided methods

fn load_from_buffer(dst: &mut [Self], src: &Buffer<Self::Dev>)

Copy data from OpenCL buffer to host slice.

fn store_to_buffer(dst: &mut Buffer<Self::Dev>, src: &[Self])

Copy data from host slice to OpenCL buffer.

Loading content...

Implementations on Foreign Types

impl Interop for bool[src]

type Dev = u8

impl Interop for usize[src]

type Dev = u32

impl Interop for isize[src]

type Dev = i32

impl<T: Float> Interop for Complex<T> where
    ComplexV01<T>: OclPrm, 
[src]

type Dev = ComplexV01<T>

Loading content...

Implementors

impl<T: IdentInterop> Interop for T[src]

type Dev = Self

Loading content...