[][src]Struct dynamic_ocl::buffer::Buffer

pub struct Buffer<'a, H: HostAccess, T: MemSafe> { /* fields omitted */ }

An OpenCL buffer

The lifetime parameter 'a is used to encode the lifetime of buffers that use a backing host pointer. For other buffers, it will be 'static.

The type parameter H is used to indicate the host accessibility level of the buffer, and provide compile-time safety when reading/writing the buffer.

The type parameter T represents the type of data stored in this buffer.

Methods

impl<'a, H: HostAccess, T: MemSafe> Buffer<'a, H, T>[src]

pub fn raw(&self) -> cl_mem[src]

pub fn rust_size(&self) -> size_t[src]

pub fn flags(&self) -> Result<BufferFlagsInfo>[src]

pub fn size(&self) -> Result<size_t>[src]

pub fn host_ptr(&self) -> Result<*mut c_void>[src]

pub fn map_count(&self) -> Result<cl_uint>[src]

pub fn reference_count(&self) -> Result<cl_uint>[src]

pub fn context_raw(&self) -> Result<cl_context>[src]

pub fn associated_memobject_raw(&self) -> Result<cl_mem>[src]

pub fn offset(&self) -> Result<size_t>[src]

pub fn uses_svm_pointer(&self) -> Result<bool>[src]

Trait Implementations

impl<'a, H: HostAccess, T: MemSafe> AsBuffer<'a, H, T> for Buffer<'a, H, T>[src]

impl<'a, H: HostAccess, T: MemSafe> Debug for Buffer<'a, H, T>[src]

impl<'a, H: HostAccess, T: MemSafe> Drop for Buffer<'a, H, T>[src]

impl<'a, H: Eq + HostAccess, T: Eq + MemSafe> Eq for Buffer<'a, H, T>[src]

impl<'a, H: Hash + HostAccess, T: Hash + MemSafe> Hash for Buffer<'a, H, T>[src]

impl<'_, H: HostAccess, T: MemSafe> KernelArg for Buffer<'_, H, T>[src]

type ArgType = cl_mem

The type of value which is passed to the clSetKernelArg call

impl<'a, H: PartialEq + HostAccess, T: PartialEq + MemSafe> PartialEq<Buffer<'a, H, T>> for Buffer<'a, H, T>[src]

impl<'a, H: HostAccess, T: MemSafe> StructuralEq for Buffer<'a, H, T>[src]

impl<'a, H: HostAccess, T: MemSafe> StructuralPartialEq for Buffer<'a, H, T>[src]

Auto Trait Implementations

impl<'a, H, T> RefUnwindSafe for Buffer<'a, H, T> where
    H: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, H, T> !Send for Buffer<'a, H, T>

impl<'a, H, T> !Sync for Buffer<'a, H, T>

impl<'a, H, T> Unpin for Buffer<'a, H, T> where
    H: Unpin

impl<'a, H, T> UnwindSafe for Buffer<'a, H, T> where
    H: UnwindSafe,
    T: 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> Same<T> for T

type Output = T

Should always be Self

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.