Struct opencl3::memory::Sampler [−][src]
pub struct Sampler { /* fields omitted */ }
Expand description
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
pub fn create(
context: &Context,
normalize_coords: cl_bool,
addressing_mode: cl_addressing_mode,
filter_mode: cl_filter_mode
) -> Result<Sampler>
pub fn create_with_properties(
context: &Context,
properties: *const cl_sampler_properties
) -> Result<Sampler>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sampler
impl UnwindSafe for Sampler