[][src]Struct opencl_core::buffer::Buffer

pub struct Buffer { /* fields omitted */ }

Methods

impl Buffer[src]

pub fn new(ll_mem: ClMem, context: Context) -> Buffer[src]

pub fn create<T: ClNumber, B: BufferCreator<T>>(
    context: &Context,
    creator: B,
    host_access: HostAccess,
    kernel_access: KernelAccess,
    mem_location: MemLocation
) -> Output<Buffer>
[src]

pub fn create_with_len<T: ClNumber>(
    context: &Context,
    len: usize
) -> Output<Buffer>
[src]

pub fn create_from_slice<T: ClNumber>(
    context: &Context,
    data: &[T]
) -> Output<Buffer>
[src]

pub fn create_from<T: ClNumber, B: BufferCreator<T>>(
    context: &Context,
    creator: B
) -> Output<Buffer>
[src]

pub fn create_with_config<T: ClNumber, B: BufferCreator<T>>(
    context: &Context,
    creator: B,
    mem_config: MemConfig
) -> Output<Buffer>
[src]

pub fn create_from_low_level_context<T: ClNumber, B: BufferCreator<T>>(
    ll_context: &ClContext,
    creator: B,
    host_access: HostAccess,
    kernel_access: KernelAccess,
    mem_location: MemLocation
) -> Output<Buffer>
[src]

pub fn read_lock(&self) -> RwLockReadGuard<ClMem>[src]

pub fn write_lock(&self) -> RwLockWriteGuard<ClMem>[src]

pub fn context(&self) -> &Context[src]

pub fn reference_count(&self) -> Output<u32>[src]

pub fn size(&self) -> Output<usize>[src]

pub fn length(&self) -> Output<usize>[src]

A non-panicking version of len.

pub fn len(&self) -> usize[src]

A method for getting the len of the device memory buffer. Panics if the buffer size info returns an error.

pub fn offset(&self) -> Output<usize>[src]

pub fn flags(&self) -> Output<MemFlags>[src]

Trait Implementations

impl Clone for Buffer[src]

impl Debug for Buffer[src]

impl NumberTyped for Buffer[src]

impl PartialEq<Buffer> for Buffer[src]

impl Send for Buffer[src]

impl Sync for Buffer[src]

impl<'a, T: ClNumber> ToKernelOpArg<'a, T> for &'a Buffer[src]

Auto Trait Implementations

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.