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
impl Sampler
[src]
impl Sampler
[src]pub fn new(sampler: cl_sampler) -> Sampler
[src]
pub fn create(
context: &Context,
normalize_coords: cl_bool,
addressing_mode: cl_addressing_mode,
filter_mode: cl_filter_mode
) -> Result<Sampler>
[src]
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>
[src]
context: &Context,
properties: *const cl_sampler_properties
) -> Result<Sampler>