[−][src]Struct dynamic_ocl::buffer::Buffer
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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
fn is_param_type_compatible(c_type: &str) -> bool
[src]
fn as_raw_kernel_arg(&self) -> (size_t, &cl_mem)
[src]
impl<'a, H: PartialEq + HostAccess, T: PartialEq + MemSafe> PartialEq<Buffer<'a, H, T>> for Buffer<'a, H, T>
[src]
fn eq(&self, other: &Buffer<'a, H, T>) -> bool
[src]
fn ne(&self, other: &Buffer<'a, H, T>) -> bool
[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,
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,
H: Unpin,
impl<'a, H, T> UnwindSafe for Buffer<'a, H, T> where
H: UnwindSafe,
T: UnwindSafe,
H: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,