#[repr(C)]pub struct Sampler(/* private fields */);
Expand description
An image sampler used to process images.
Implementations§
source§impl Sampler
impl Sampler
sourcepub fn new(
context: &Context,
normalize_coords: bool,
addressing_mode: AddressingMode,
filter_mode: FilterMode
) -> OclResult<Sampler>
pub fn new( context: &Context, normalize_coords: bool, addressing_mode: AddressingMode, filter_mode: FilterMode ) -> OclResult<Sampler>
sourcepub fn with_defaults(context: &Context) -> OclResult<Sampler>
pub fn with_defaults(context: &Context) -> OclResult<Sampler>
Creates and returns a new sampler with some default settings.
§Defaults
normalize_coords
: falseaddressing_mode
:AddressingMode::None
filter_mode
:FilterMode::Nearest
sourcepub fn info(&self, info_kind: SamplerInfo) -> OclCoreResult<SamplerInfoResult>
pub fn info(&self, info_kind: SamplerInfo) -> OclCoreResult<SamplerInfoResult>
Returns various kinds of information about the sampler.
Methods from Deref<Target = SamplerCore>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sampler
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more