[][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>
    ) -> OclResult<()> { ... }
fn store_to_buffer(
        dst: &mut Buffer<Self::Dev>,
        src: &[Self]
    ) -> OclResult<()> { ... } }

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>) -> OclResult<()>

Copy data from OpenCL buffer to host slice.

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

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 Complex<f32>[src]

type Dev = ComplexV01<f32>

impl Interop for Complex<f64>[src]

type Dev = ComplexV01<f64>

Loading content...

Implementors

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

type Dev = Self

Loading content...