Struct opencl3::memory::Pipe [−][src]
pub struct Pipe { /* fields omitted */ }
An OpenCL pipe.
Has methods to return information from calls to clGetPipeInfo with the
appropriate parameters.
Implements the Drop trait to call release_mem_object when the object is dropped.
Implementations
impl Pipe
[src]
pub fn new(pipe: cl_mem) -> Pipe
[src]
pub fn create(
context: &Context,
flags: cl_mem_flags,
pipe_packet_size: cl_uint,
pipe_max_packets: cl_uint
) -> Result<Pipe>
[src]
context: &Context,
flags: cl_mem_flags,
pipe_packet_size: cl_uint,
pipe_max_packets: cl_uint
) -> Result<Pipe>
pub fn pipe_packet_size(&self) -> Result<cl_uint>
[src]
pub fn pipe_max_packets(&self) -> Result<cl_uint>
[src]
pub fn pipe_properties(&self) -> Result<Vec<intptr_t>>
[src]
Trait Implementations
impl ClMem for Pipe
[src]
fn get(&self) -> cl_mem
[src]
fn mem_type(&self) -> Result<cl_mem_object_type>
[src]
fn flags(&self) -> Result<cl_mem_flags>
[src]
fn size(&self) -> Result<size_t>
[src]
fn host_ptr(&self) -> Result<intptr_t>
[src]
fn map_count(&self) -> Result<cl_uint>
[src]
fn reference_count(&self) -> Result<cl_uint>
[src]
fn context(&self) -> Result<cl_context>
[src]
fn associated_memobject(&self) -> Result<cl_mem>
[src]
fn offset(&self) -> Result<size_t>
[src]
fn uses_svm_pointer(&self) -> Result<cl_uint>
[src]
fn properties(&self) -> Result<Vec<cl_ulong>>
[src]
impl Drop for Pipe
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pipe
impl !Send for Pipe
impl !Sync for Pipe
impl Unpin for Pipe
impl UnwindSafe for Pipe
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,
pub 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, 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.
pub 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>,