[−][src]Struct opencl3::memory::Pipe
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<T>(
context: &Context,
flags: cl_mem_flags,
pipe_packet_size: cl_uint,
pipe_max_packets: cl_uint
) -> Result<Pipe, cl_int>
[src]
context: &Context,
flags: cl_mem_flags,
pipe_packet_size: cl_uint,
pipe_max_packets: cl_uint
) -> Result<Pipe, cl_int>
pub fn get(&self) -> cl_mem
[src]
pub fn get_packet_size(&self) -> Result<cl_uint, cl_int>
[src]
pub fn get_max_packets(&self) -> Result<cl_uint, cl_int>
[src]
pub fn get_properties(&self) -> Result<Vec<intptr_t>, cl_int>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pipe
[src]
impl !Send for Pipe
[src]
impl !Sync for Pipe
[src]
impl Unpin for Pipe
[src]
impl UnwindSafe for Pipe
[src]
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>,