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
impl Pipe
pub fn new(pipe: cl_mem) -> Pipe
pub unsafe fn create( 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>
pub fn pipe_max_packets(&self) -> Result<cl_uint>
pub fn pipe_properties(&self) -> Result<Vec<intptr_t>>
Trait Implementations§
source§impl ClMem for Pipe
impl ClMem for Pipe
fn get(&self) -> cl_mem
fn get_mut(&mut self) -> cl_mem
fn mem_type(&self) -> Result<cl_mem_object_type>
fn flags(&self) -> Result<cl_mem_flags>
fn size(&self) -> Result<size_t>
fn host_ptr(&self) -> Result<intptr_t>
fn map_count(&self) -> Result<cl_uint>
fn reference_count(&self) -> Result<cl_uint>
fn context(&self) -> Result<cl_context>
fn associated_memobject(&self) -> Result<cl_mem>
fn offset(&self) -> Result<size_t>
fn uses_svm_pointer(&self) -> Result<cl_uint>
source§fn get_mem_data(&self, param_name: cl_mem_info) -> Result<Vec<u8>>
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)>
fn gl_object_info(&self) -> Result<(cl_GLuint, cl_GLuint)>
Query an OpenGL object used to create an OpenCL memory object. 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more