Struct ocl::Sampler [] [src]

#[repr(C)]
pub struct Sampler(_);

An image sampler used to process images.

Methods

impl Sampler
[src]

Creates and returns a new sampler.

Enum Quick Reference

addressing_mode:

  • AddressingMode::None
  • AddressingMode::ClampToEdge
  • AddressingMode::Clamp
  • AddressingMode::Repeat
  • AddressingMode::MirroredRepeat

filter_mode:

  • FilterMode::Nearest
  • FilterMode::Linear

See SDK Docs for more information.

Creates and returns a new sampler with some default settings.

Defaults

  • normalize_coords: false
  • addressing_mode: AddressingMode::None
  • filter_mode: FilterMode::Nearest

Returns various kinds of information about the sampler.

Methods from Deref<Target = SamplerCore>

Returns a pointer, do not store it.

Trait Implementations

impl Display for Sampler
[src]

Formats the value using the given formatter. Read more

impl Deref for Sampler
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Sampler
[src]

The method called to mutably dereference a value