pub struct DepthStencilState(/* private fields */);Expand description
An object that contains depth and stencil test configurations.
C++ equivalent: MTL::DepthStencilState
Implementations§
Source§impl DepthStencilState
impl DepthStencilState
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a DepthStencilState from a raw pointer.
§Safety
The pointer must be a valid Metal depth/stencil state object.
Sourcepub fn label(&self) -> Option<String>
pub fn label(&self) -> Option<String>
Get the label for this depth/stencil state.
C++ equivalent: NS::String* label() const
Sourcepub fn device(&self) -> Device
pub fn device(&self) -> Device
Get the device that created this depth/stencil state.
C++ equivalent: Device* device() const
Sourcepub fn gpu_resource_id(&self) -> ResourceID
pub fn gpu_resource_id(&self) -> ResourceID
Get the GPU resource ID for bindless access.
C++ equivalent: ResourceID gpuResourceID() const
Trait Implementations§
Source§impl Clone for DepthStencilState
impl Clone for DepthStencilState
Source§impl Debug for DepthStencilState
impl Debug for DepthStencilState
Source§impl Drop for DepthStencilState
impl Drop for DepthStencilState
Source§impl Referencing for DepthStencilState
impl Referencing for DepthStencilState
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for DepthStencilState
impl Sync for DepthStencilState
Auto Trait Implementations§
impl Freeze for DepthStencilState
impl RefUnwindSafe for DepthStencilState
impl Unpin for DepthStencilState
impl UnwindSafe for DepthStencilState
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