pub struct DepthStencilDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = DepthStencilDescriptorRef>§
pub fn depth_compare_function(&self) -> MTLCompareFunction
pub fn set_depth_compare_function(&self, func: MTLCompareFunction)
pub fn depth_write_enabled(&self) -> bool
pub fn set_depth_write_enabled(&self, enabled: bool)
pub fn front_face_stencil(&self) -> Option<&StencilDescriptorRef>
pub fn set_front_face_stencil(&self, descriptor: Option<&StencilDescriptorRef>)
pub fn back_face_stencil(&self) -> Option<&StencilDescriptorRef>
pub fn set_back_face_stencil(&self, descriptor: Option<&StencilDescriptorRef>)
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
Trait Implementations§
Source§impl AsMut<DepthStencilDescriptorRef> for DepthStencilDescriptor
impl AsMut<DepthStencilDescriptorRef> for DepthStencilDescriptor
Source§fn as_mut(&mut self) -> &mut DepthStencilDescriptorRef
fn as_mut(&mut self) -> &mut DepthStencilDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<DepthStencilDescriptorRef> for DepthStencilDescriptor
impl AsRef<DepthStencilDescriptorRef> for DepthStencilDescriptor
Source§fn as_ref(&self) -> &DepthStencilDescriptorRef
fn as_ref(&self) -> &DepthStencilDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<DepthStencilDescriptorRef> for DepthStencilDescriptor
impl Borrow<DepthStencilDescriptorRef> for DepthStencilDescriptor
Source§fn borrow(&self) -> &DepthStencilDescriptorRef
fn borrow(&self) -> &DepthStencilDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<DepthStencilDescriptorRef> for DepthStencilDescriptor
impl BorrowMut<DepthStencilDescriptorRef> for DepthStencilDescriptor
Source§fn borrow_mut(&mut self) -> &mut DepthStencilDescriptorRef
fn borrow_mut(&mut self) -> &mut DepthStencilDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for DepthStencilDescriptor
impl Clone for DepthStencilDescriptor
Source§fn clone(&self) -> DepthStencilDescriptor
fn clone(&self) -> DepthStencilDescriptor
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 DepthStencilDescriptor
impl Debug for DepthStencilDescriptor
Source§impl Deref for DepthStencilDescriptor
impl Deref for DepthStencilDescriptor
Source§type Target = DepthStencilDescriptorRef
type Target = DepthStencilDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &DepthStencilDescriptorRef
fn deref(&self) -> &DepthStencilDescriptorRef
Dereferences the value.
Source§impl DerefMut for DepthStencilDescriptor
impl DerefMut for DepthStencilDescriptor
Source§fn deref_mut(&mut self) -> &mut DepthStencilDescriptorRef
fn deref_mut(&mut self) -> &mut DepthStencilDescriptorRef
Mutably dereferences the value.
Source§impl Drop for DepthStencilDescriptor
impl Drop for DepthStencilDescriptor
Source§impl ForeignType for DepthStencilDescriptor
impl ForeignType for DepthStencilDescriptor
Source§type CType = MTLDepthStencilDescriptor
type CType = MTLDepthStencilDescriptor
The raw C type.
Source§type Ref = DepthStencilDescriptorRef
type Ref = DepthStencilDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(
ptr: *mut MTLDepthStencilDescriptor,
) -> DepthStencilDescriptor
unsafe fn from_ptr( ptr: *mut MTLDepthStencilDescriptor, ) -> DepthStencilDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLDepthStencilDescriptor
fn as_ptr(&self) -> *mut MTLDepthStencilDescriptor
Returns a raw pointer to the wrapped value.
impl Send for DepthStencilDescriptor
impl Sync for DepthStencilDescriptor
Auto Trait Implementations§
impl Freeze for DepthStencilDescriptor
impl RefUnwindSafe for DepthStencilDescriptor
impl Unpin for DepthStencilDescriptor
impl UnwindSafe for DepthStencilDescriptor
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)