#[repr(C)]pub struct Sampler(/* private fields */);
Expand description
cl_sampler
Implementations§
source§impl Sampler
impl Sampler
sourcepub unsafe fn from_raw_create_ptr(ptr: cl_sampler) -> Sampler
pub unsafe fn from_raw_create_ptr(ptr: cl_sampler) -> Sampler
Only call this when passing a newly created pointer directly from
clCreate...
. Do not use this to clone or copy.
sourcepub unsafe fn as_ptr(&self) -> cl_sampler
pub unsafe fn as_ptr(&self) -> cl_sampler
Returns a pointer, do not store it.
Trait Implementations§
impl Send for Sampler
impl Sync for Sampler
Auto Trait Implementations§
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