Struct opencl3::memory::Pipe

source ·
pub struct Pipe { /* private fields */ }
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§

source§

impl Pipe

source

pub fn new(pipe: cl_mem) -> Pipe

source

pub unsafe fn create( context: &Context, flags: cl_mem_flags, pipe_packet_size: cl_uint, pipe_max_packets: cl_uint ) -> Result<Pipe>

source

pub fn pipe_packet_size(&self) -> Result<cl_uint>

source

pub fn pipe_max_packets(&self) -> Result<cl_uint>

source

pub fn pipe_properties(&self) -> Result<Vec<intptr_t>>

source

pub fn get_data(&self, param_name: cl_pipe_info) -> Result<Vec<u8>>

Get data about an OpenCL pipe object.
Calls clGetPipeInfo to get the desired information about the pipe object.

Trait Implementations§

source§

impl ClMem for Pipe

source§

fn get(&self) -> cl_mem

source§

fn get_mut(&mut self) -> cl_mem

source§

fn mem_type(&self) -> Result<cl_mem_object_type>

source§

fn flags(&self) -> Result<cl_mem_flags>

source§

fn size(&self) -> Result<size_t>

source§

fn host_ptr(&self) -> Result<intptr_t>

source§

fn map_count(&self) -> Result<cl_uint>

source§

fn reference_count(&self) -> Result<cl_uint>

source§

fn context(&self) -> Result<cl_context>

source§

fn associated_memobject(&self) -> Result<cl_mem>

source§

fn offset(&self) -> Result<size_t>

source§

fn uses_svm_pointer(&self) -> Result<cl_uint>

source§

fn properties(&self) -> Result<Vec<cl_ulong>>

CL_VERSION_3_0
source§

fn get_mem_data(&self, param_name: cl_mem_info) -> Result<Vec<u8>>

Get memory data about an OpenCL memory object. Calls clGetMemObjectInfo to get the desired data about the memory object.
source§

fn gl_object_info(&self) -> Result<(cl_GLuint, cl_GLuint)>

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

impl Debug for Pipe

source§

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

Formats the value using the given formatter. Read more
source§

impl Drop for Pipe

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl From<*mut c_void> for Pipe

source§

fn from(pipe: cl_mem) -> Self

Converts to this type from the input type.
source§

impl From<Pipe> for cl_mem

source§

fn from(value: Pipe) -> Self

Converts to this type from the input type.

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.