pub struct RenderPassColorAttachmentDescriptor(/* private fields */);Expand description
A color attachment descriptor for a render pass.
C++ equivalent: MTL::RenderPassColorAttachmentDescriptor
Implementations§
Source§impl RenderPassColorAttachmentDescriptor
impl RenderPassColorAttachmentDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPassColorAttachmentDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal render pass color attachment descriptor object.
Sourcepub fn clear_color(&self) -> ClearColor
pub fn clear_color(&self) -> ClearColor
Get the clear color for this attachment.
C++ equivalent: ClearColor clearColor() const
Sourcepub fn set_clear_color(&self, color: ClearColor)
pub fn set_clear_color(&self, color: ClearColor)
Set the clear color for this attachment.
C++ equivalent: void setClearColor(ClearColor)
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.
Trait Implementations§
Source§impl Referencing for RenderPassColorAttachmentDescriptor
impl Referencing for RenderPassColorAttachmentDescriptor
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_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
Auto Trait Implementations§
impl Freeze for RenderPassColorAttachmentDescriptor
impl RefUnwindSafe for RenderPassColorAttachmentDescriptor
impl !Send for RenderPassColorAttachmentDescriptor
impl !Sync for RenderPassColorAttachmentDescriptor
impl Unpin for RenderPassColorAttachmentDescriptor
impl UnwindSafe for RenderPassColorAttachmentDescriptor
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