[][src]Struct tension::DeviceBuffer

pub struct DeviceBuffer<T: Prm + Interop> { /* fields omitted */ }

Buffer that stores data on device. Wrapper over OpenCL buffer.

Implementations

impl<T: Prm + Interop> DeviceBuffer<T>[src]

pub fn copy_from_host(&mut self, src: &HostBuffer<T>)[src]

Copies content to self from host buffer.

pub fn copy_to_host(&self, dst: &mut HostBuffer<T>)[src]

Copies content from self to host buffer.

pub fn clone_to(&self, context: &DeviceContext) -> Self[src]

Creates a new buffer in a specified context and copies the content to it.

Trait Implementations

impl<T: Prm + Interop> Buffer<T> for DeviceBuffer<T>[src]

type Context = DeviceContext

Context for buffer allocation.

impl<T: Prm + Interop> Clone for DeviceBuffer<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for DeviceBuffer<T> where
    <T as Interop>::Dev: RefUnwindSafe

impl<T> Send for DeviceBuffer<T> where
    <T as Interop>::Dev: Send

impl<T> Sync for DeviceBuffer<T> where
    <T as Interop>::Dev: Sync

impl<T> Unpin for DeviceBuffer<T> where
    <T as Interop>::Dev: Unpin

impl<T> UnwindSafe for DeviceBuffer<T> where
    <T as Interop>::Dev: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.