[−][src]Struct opencl3::memory::Sampler
An OpenCL sampler.
Has methods to return information from calls to clGetSamplerInfo with the
appropriate parameters.
Implements the Drop trait to call release_sampler when the object is dropped.
Implementations
impl Sampler
[src]
pub fn new(sampler: cl_sampler) -> Sampler
[src]
pub fn create<T>(
context: &Context,
normalize_coords: cl_bool,
addressing_mode: cl_addressing_mode,
filter_mode: cl_filter_mode
) -> Result<Sampler, cl_int>
[src]
context: &Context,
normalize_coords: cl_bool,
addressing_mode: cl_addressing_mode,
filter_mode: cl_filter_mode
) -> Result<Sampler, cl_int>
pub fn create_with_properties<T>(
context: &Context,
properties: *const cl_sampler_properties
) -> Result<Sampler, cl_int>
[src]
context: &Context,
properties: *const cl_sampler_properties
) -> Result<Sampler, cl_int>
pub fn get(&self) -> cl_sampler
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sampler
[src]
impl !Send for Sampler
[src]
impl !Sync for Sampler
[src]
impl Unpin for Sampler
[src]
impl UnwindSafe for Sampler
[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>,