pub struct SamplerDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = SamplerDescriptorRef>§
pub fn set_min_filter(&self, filter: MTLSamplerMinMagFilter)
pub fn set_mag_filter(&self, filter: MTLSamplerMinMagFilter)
pub fn set_mip_filter(&self, filter: MTLSamplerMipFilter)
pub fn set_address_mode_s(&self, mode: MTLSamplerAddressMode)
pub fn set_address_mode_t(&self, mode: MTLSamplerAddressMode)
pub fn set_address_mode_r(&self, mode: MTLSamplerAddressMode)
pub fn set_max_anisotropy(&self, anisotropy: NSUInteger)
pub fn set_compare_function(&self, func: MTLCompareFunction)
pub fn set_lod_min_clamp(&self, clamp: f32)
pub fn set_lod_max_clamp(&self, clamp: f32)
pub fn set_lod_average(&self, enable: bool)
pub fn set_normalized_coordinates(&self, enable: bool)
pub fn set_support_argument_buffers(&self, enable: bool)
pub fn set_border_color(&self, color: MTLSamplerBorderColor)
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
Trait Implementations§
Source§impl AsMut<SamplerDescriptorRef> for SamplerDescriptor
impl AsMut<SamplerDescriptorRef> for SamplerDescriptor
Source§fn as_mut(&mut self) -> &mut SamplerDescriptorRef
fn as_mut(&mut self) -> &mut SamplerDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<SamplerDescriptorRef> for SamplerDescriptor
impl AsRef<SamplerDescriptorRef> for SamplerDescriptor
Source§fn as_ref(&self) -> &SamplerDescriptorRef
fn as_ref(&self) -> &SamplerDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<SamplerDescriptorRef> for SamplerDescriptor
impl Borrow<SamplerDescriptorRef> for SamplerDescriptor
Source§fn borrow(&self) -> &SamplerDescriptorRef
fn borrow(&self) -> &SamplerDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<SamplerDescriptorRef> for SamplerDescriptor
impl BorrowMut<SamplerDescriptorRef> for SamplerDescriptor
Source§fn borrow_mut(&mut self) -> &mut SamplerDescriptorRef
fn borrow_mut(&mut self) -> &mut SamplerDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for SamplerDescriptor
impl Clone for SamplerDescriptor
Source§fn clone(&self) -> SamplerDescriptor
fn clone(&self) -> SamplerDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplerDescriptor
impl Debug for SamplerDescriptor
Source§impl Deref for SamplerDescriptor
impl Deref for SamplerDescriptor
Source§type Target = SamplerDescriptorRef
type Target = SamplerDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &SamplerDescriptorRef
fn deref(&self) -> &SamplerDescriptorRef
Dereferences the value.
Source§impl DerefMut for SamplerDescriptor
impl DerefMut for SamplerDescriptor
Source§fn deref_mut(&mut self) -> &mut SamplerDescriptorRef
fn deref_mut(&mut self) -> &mut SamplerDescriptorRef
Mutably dereferences the value.
Source§impl Drop for SamplerDescriptor
impl Drop for SamplerDescriptor
Source§impl ForeignType for SamplerDescriptor
impl ForeignType for SamplerDescriptor
Source§type CType = MTLSamplerDescriptor
type CType = MTLSamplerDescriptor
The raw C type.
Source§type Ref = SamplerDescriptorRef
type Ref = SamplerDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLSamplerDescriptor) -> SamplerDescriptor
unsafe fn from_ptr(ptr: *mut MTLSamplerDescriptor) -> SamplerDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLSamplerDescriptor
fn as_ptr(&self) -> *mut MTLSamplerDescriptor
Returns a raw pointer to the wrapped value.
impl Send for SamplerDescriptor
impl Sync for SamplerDescriptor
Auto Trait Implementations§
impl Freeze for SamplerDescriptor
impl RefUnwindSafe for SamplerDescriptor
impl Unpin for SamplerDescriptor
impl UnwindSafe for SamplerDescriptor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)