[][src]Struct opencl3::memory::Sampler

pub struct Sampler { /* fields omitted */ }

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]

pub fn create_with_properties<T>(
    context: &Context,
    properties: *const cl_sampler_properties
) -> Result<Sampler, cl_int>
[src]

pub fn get(&self) -> cl_sampler[src]

Trait Implementations

impl Drop for Sampler[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

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

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.

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.