Struct opencl3::memory::Pipe[][src]

pub struct Pipe { /* fields omitted */ }
Expand description

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]

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]

fn gl_object_info(&self) -> Result<(gl_uint, gl_uint)>[src]

Query an OpenGL object used to create an OpenCL memory object. Read more

impl Debug for Pipe[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Drop for Pipe[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.