[−][src]Struct opencl_core::buffer::Buffer
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]
context: &Context,
creator: B,
host_access: HostAccess,
kernel_access: KernelAccess,
mem_location: MemLocation
) -> Output<Buffer>
pub fn create_with_len<T: ClNumber>(
context: &Context,
len: usize
) -> Output<Buffer>
[src]
context: &Context,
len: usize
) -> Output<Buffer>
pub fn create_from_slice<T: ClNumber>(
context: &Context,
data: &[T]
) -> Output<Buffer>
[src]
context: &Context,
data: &[T]
) -> Output<Buffer>
pub fn create_from<T: ClNumber, B: BufferCreator<T>>(
context: &Context,
creator: B
) -> Output<Buffer>
[src]
context: &Context,
creator: B
) -> Output<Buffer>
pub fn create_with_config<T: ClNumber, B: BufferCreator<T>>(
context: &Context,
creator: B,
mem_config: MemConfig
) -> Output<Buffer>
[src]
context: &Context,
creator: B,
mem_config: MemConfig
) -> Output<Buffer>
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]
ll_context: &ClContext,
creator: B,
host_access: HostAccess,
kernel_access: KernelAccess,
mem_location: MemLocation
) -> Output<Buffer>
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]
fn number_type(&self) -> NumberType
[src]
fn matches(&self, other: NumberType) -> bool
[src]
fn match_or_panic(&self, other: NumberType)
[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]
fn to_kernel_op_arg(&self) -> Output<KernelOpArg<'a, T>>
[src]
Auto Trait Implementations
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,