pub struct RenderPassAttachmentDescriptor(/* private fields */);Expand description
Base class for render pass attachment descriptors.
C++ equivalent: MTL::RenderPassAttachmentDescriptor
Implementations§
Source§impl RenderPassAttachmentDescriptor
impl RenderPassAttachmentDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPassAttachmentDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal render pass attachment descriptor object.
Sourcepub fn texture(&self) -> Option<Texture>
pub fn texture(&self) -> Option<Texture>
Get the texture for this attachment.
C++ equivalent: Texture* texture() const
Sourcepub fn set_texture(&self, texture: Option<&Texture>)
pub fn set_texture(&self, texture: Option<&Texture>)
Set the texture for this attachment.
C++ equivalent: void setTexture(const Texture*)
Sourcepub fn level(&self) -> UInteger
pub fn level(&self) -> UInteger
Get the mipmap level for this attachment.
C++ equivalent: NS::UInteger level() const
Sourcepub fn set_level(&self, level: UInteger)
pub fn set_level(&self, level: UInteger)
Set the mipmap level for this attachment.
C++ equivalent: void setLevel(NS::UInteger)
Sourcepub fn slice(&self) -> UInteger
pub fn slice(&self) -> UInteger
Get the slice for this attachment.
C++ equivalent: NS::UInteger slice() const
Sourcepub fn set_slice(&self, slice: UInteger)
pub fn set_slice(&self, slice: UInteger)
Set the slice for this attachment.
C++ equivalent: void setSlice(NS::UInteger)
Sourcepub fn depth_plane(&self) -> UInteger
pub fn depth_plane(&self) -> UInteger
Get the depth plane for this attachment.
C++ equivalent: NS::UInteger depthPlane() const
Sourcepub fn set_depth_plane(&self, depth_plane: UInteger)
pub fn set_depth_plane(&self, depth_plane: UInteger)
Set the depth plane for this attachment.
C++ equivalent: void setDepthPlane(NS::UInteger)
Sourcepub fn load_action(&self) -> LoadAction
pub fn load_action(&self) -> LoadAction
Get the load action for this attachment.
C++ equivalent: LoadAction loadAction() const
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.
C++ equivalent: void setLoadAction(LoadAction)
Sourcepub fn store_action(&self) -> StoreAction
pub fn store_action(&self) -> StoreAction
Get the store action for this attachment.
C++ equivalent: StoreAction storeAction() const
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.
C++ equivalent: void setStoreAction(StoreAction)
Sourcepub fn store_action_options(&self) -> StoreActionOptions
pub fn store_action_options(&self) -> StoreActionOptions
Get the store action options for this attachment.
C++ equivalent: StoreActionOptions storeActionOptions() const
Sourcepub fn set_store_action_options(&self, options: StoreActionOptions)
pub fn set_store_action_options(&self, options: StoreActionOptions)
Set the store action options for this attachment.
C++ equivalent: void setStoreActionOptions(StoreActionOptions)
Sourcepub fn resolve_texture(&self) -> Option<Texture>
pub fn resolve_texture(&self) -> Option<Texture>
Get the resolve texture for this attachment.
C++ equivalent: Texture* resolveTexture() const
Sourcepub fn set_resolve_texture(&self, texture: Option<&Texture>)
pub fn set_resolve_texture(&self, texture: Option<&Texture>)
Set the resolve texture for this attachment.
C++ equivalent: void setResolveTexture(const Texture*)
Sourcepub fn resolve_level(&self) -> UInteger
pub fn resolve_level(&self) -> UInteger
Get the resolve level for this attachment.
C++ equivalent: NS::UInteger resolveLevel() const
Sourcepub fn set_resolve_level(&self, level: UInteger)
pub fn set_resolve_level(&self, level: UInteger)
Set the resolve level for this attachment.
C++ equivalent: void setResolveLevel(NS::UInteger)
Sourcepub fn resolve_slice(&self) -> UInteger
pub fn resolve_slice(&self) -> UInteger
Get the resolve slice for this attachment.
C++ equivalent: NS::UInteger resolveSlice() const
Sourcepub fn set_resolve_slice(&self, slice: UInteger)
pub fn set_resolve_slice(&self, slice: UInteger)
Set the resolve slice for this attachment.
C++ equivalent: void setResolveSlice(NS::UInteger)
Sourcepub fn resolve_depth_plane(&self) -> UInteger
pub fn resolve_depth_plane(&self) -> UInteger
Get the resolve depth plane for this attachment.
C++ equivalent: NS::UInteger resolveDepthPlane() const
Sourcepub fn set_resolve_depth_plane(&self, depth_plane: UInteger)
pub fn set_resolve_depth_plane(&self, depth_plane: UInteger)
Set the resolve depth plane for this attachment.
C++ equivalent: void setResolveDepthPlane(NS::UInteger)