pub struct SamplerState(/* private fields */);Methods from Deref<Target = SamplerStateRef>§
pub fn device(&self) -> &DeviceRef
pub fn label(&self) -> &str
pub fn gpu_resource_id(&self) -> MTLResourceID
Trait Implementations§
Source§impl AsMut<SamplerStateRef> for SamplerState
impl AsMut<SamplerStateRef> for SamplerState
Source§fn as_mut(&mut self) -> &mut SamplerStateRef
fn as_mut(&mut self) -> &mut SamplerStateRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<SamplerStateRef> for SamplerState
impl AsRef<SamplerStateRef> for SamplerState
Source§fn as_ref(&self) -> &SamplerStateRef
fn as_ref(&self) -> &SamplerStateRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<SamplerStateRef> for SamplerState
impl Borrow<SamplerStateRef> for SamplerState
Source§fn borrow(&self) -> &SamplerStateRef
fn borrow(&self) -> &SamplerStateRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<SamplerStateRef> for SamplerState
impl BorrowMut<SamplerStateRef> for SamplerState
Source§fn borrow_mut(&mut self) -> &mut SamplerStateRef
fn borrow_mut(&mut self) -> &mut SamplerStateRef
Mutably borrows from an owned value. Read more
Source§impl Clone for SamplerState
impl Clone for SamplerState
Source§fn clone(&self) -> SamplerState
fn clone(&self) -> SamplerState
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 SamplerState
impl Debug for SamplerState
Source§impl Deref for SamplerState
impl Deref for SamplerState
Source§type Target = SamplerStateRef
type Target = SamplerStateRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &SamplerStateRef
fn deref(&self) -> &SamplerStateRef
Dereferences the value.
Source§impl DerefMut for SamplerState
impl DerefMut for SamplerState
Source§fn deref_mut(&mut self) -> &mut SamplerStateRef
fn deref_mut(&mut self) -> &mut SamplerStateRef
Mutably dereferences the value.
Source§impl Drop for SamplerState
impl Drop for SamplerState
Source§impl ForeignType for SamplerState
impl ForeignType for SamplerState
Source§type CType = MTLSamplerState
type CType = MTLSamplerState
The raw C type.
Source§type Ref = SamplerStateRef
type Ref = SamplerStateRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLSamplerState) -> SamplerState
unsafe fn from_ptr(ptr: *mut MTLSamplerState) -> SamplerState
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLSamplerState
fn as_ptr(&self) -> *mut MTLSamplerState
Returns a raw pointer to the wrapped value.
impl Send for SamplerState
impl Sync for SamplerState
Auto Trait Implementations§
impl Freeze for SamplerState
impl RefUnwindSafe for SamplerState
impl Unpin for SamplerState
impl UnwindSafe for SamplerState
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)