pub struct RenderPassDepthAttachmentDescriptor(/* private fields */);Expand description
A depth attachment descriptor for a render pass.
C++ equivalent: MTL::RenderPassDepthAttachmentDescriptor
Implementations§
Source§impl RenderPassDepthAttachmentDescriptor
impl RenderPassDepthAttachmentDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPassDepthAttachmentDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal render pass depth attachment descriptor object.
Sourcepub fn clear_depth(&self) -> f64
pub fn clear_depth(&self) -> f64
Get the clear depth value for this attachment.
C++ equivalent: double clearDepth() const
Sourcepub fn set_clear_depth(&self, depth: f64)
pub fn set_clear_depth(&self, depth: f64)
Set the clear depth value for this attachment.
C++ equivalent: void setClearDepth(double)
Sourcepub fn depth_resolve_filter(&self) -> MultisampleDepthResolveFilter
pub fn depth_resolve_filter(&self) -> MultisampleDepthResolveFilter
Get the depth resolve filter for this attachment.
C++ equivalent: MultisampleDepthResolveFilter depthResolveFilter() const
Sourcepub fn set_depth_resolve_filter(&self, filter: MultisampleDepthResolveFilter)
pub fn set_depth_resolve_filter(&self, filter: MultisampleDepthResolveFilter)
Set the depth resolve filter for this attachment.
C++ equivalent: void setDepthResolveFilter(MultisampleDepthResolveFilter)
Sourcepub fn set_texture(&self, texture: Option<&Texture>)
pub fn set_texture(&self, texture: Option<&Texture>)
Set the texture for this attachment.
Sourcepub fn load_action(&self) -> LoadAction
pub fn load_action(&self) -> LoadAction
Get the load action for this attachment.
Sourcepub fn set_load_action(&self, load_action: LoadAction)
pub fn set_load_action(&self, load_action: LoadAction)
Set the load action for this attachment.
Sourcepub fn store_action(&self) -> StoreAction
pub fn store_action(&self) -> StoreAction
Get the store action for this attachment.
Sourcepub fn set_store_action(&self, store_action: StoreAction)
pub fn set_store_action(&self, store_action: StoreAction)
Set the store action for this attachment.