pub struct RenderPassStencilAttachmentDescriptor(/* private fields */);Expand description
A stencil attachment descriptor for a render pass.
C++ equivalent: MTL::RenderPassStencilAttachmentDescriptor
Implementations§
Source§impl RenderPassStencilAttachmentDescriptor
impl RenderPassStencilAttachmentDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPassStencilAttachmentDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal render pass stencil attachment descriptor object.
Sourcepub fn clear_stencil(&self) -> u32
pub fn clear_stencil(&self) -> u32
Get the clear stencil value for this attachment.
C++ equivalent: uint32_t clearStencil() const
Sourcepub fn set_clear_stencil(&self, stencil: u32)
pub fn set_clear_stencil(&self, stencil: u32)
Set the clear stencil value for this attachment.
C++ equivalent: void setClearStencil(uint32_t)
Sourcepub fn stencil_resolve_filter(&self) -> MultisampleStencilResolveFilter
pub fn stencil_resolve_filter(&self) -> MultisampleStencilResolveFilter
Get the stencil resolve filter for this attachment.
C++ equivalent: MultisampleStencilResolveFilter stencilResolveFilter() const
Sourcepub fn set_stencil_resolve_filter(
&self,
filter: MultisampleStencilResolveFilter,
)
pub fn set_stencil_resolve_filter( &self, filter: MultisampleStencilResolveFilter, )
Set the stencil resolve filter for this attachment.
C++ equivalent: void setStencilResolveFilter(MultisampleStencilResolveFilter)
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.