Struct ocl::Sampler [] [src]

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

An image sampler used to process images.

Methods

impl Sampler
[src]

[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.

[src]

Creates and returns a new sampler with some default settings.

Defaults

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

[src]

Returns various kinds of information about the sampler.

Methods from Deref<Target = SamplerCore>

[src]

Returns a pointer, do not store it.

Trait Implementations

impl Clone for Sampler
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Sampler
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Sampler
[src]

[src]

Formats the value using the given formatter. Read more

impl Deref for Sampler
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Sampler
[src]

[src]

Mutably dereferences the value.

Auto Trait Implementations

impl Send for Sampler

impl Sync for Sampler