pub struct RenderPipelineColorAttachmentDescriptorRef(/* private fields */);Expand description
A borrowed reference to a RenderPipelineColorAttachmentDescriptor.
Implementations§
Source§impl RenderPipelineColorAttachmentDescriptorRef
impl RenderPipelineColorAttachmentDescriptorRef
pub fn pixel_format(&self) -> MTLPixelFormat
pub fn set_pixel_format(&self, pixel_format: MTLPixelFormat)
pub fn is_blending_enabled(&self) -> bool
pub fn set_blending_enabled(&self, enabled: bool)
pub fn source_rgb_blend_factor(&self) -> MTLBlendFactor
pub fn set_source_rgb_blend_factor(&self, blend_factor: MTLBlendFactor)
pub fn destination_rgb_blend_factor(&self) -> MTLBlendFactor
pub fn set_destination_rgb_blend_factor(&self, blend_factor: MTLBlendFactor)
pub fn rgb_blend_operation(&self) -> MTLBlendOperation
pub fn set_rgb_blend_operation(&self, blend_operation: MTLBlendOperation)
pub fn source_alpha_blend_factor(&self) -> MTLBlendFactor
pub fn set_source_alpha_blend_factor(&self, blend_factor: MTLBlendFactor)
pub fn destination_alpha_blend_factor(&self) -> MTLBlendFactor
pub fn set_destination_alpha_blend_factor(&self, blend_factor: MTLBlendFactor)
pub fn alpha_blend_operation(&self) -> MTLBlendOperation
pub fn set_alpha_blend_operation(&self, blend_operation: MTLBlendOperation)
pub fn write_mask(&self) -> MTLColorWriteMask
pub fn set_write_mask(&self, mask: MTLColorWriteMask)
Trait Implementations§
Source§impl AsMut<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
impl AsMut<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
Source§fn as_mut(&mut self) -> &mut RenderPipelineColorAttachmentDescriptorRef
fn as_mut(&mut self) -> &mut RenderPipelineColorAttachmentDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
impl AsRef<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
Source§fn as_ref(&self) -> &RenderPipelineColorAttachmentDescriptorRef
fn as_ref(&self) -> &RenderPipelineColorAttachmentDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
impl Borrow<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
Source§fn borrow(&self) -> &RenderPipelineColorAttachmentDescriptorRef
fn borrow(&self) -> &RenderPipelineColorAttachmentDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
impl BorrowMut<RenderPipelineColorAttachmentDescriptorRef> for RenderPipelineColorAttachmentDescriptor
Source§fn borrow_mut(&mut self) -> &mut RenderPipelineColorAttachmentDescriptorRef
fn borrow_mut(&mut self) -> &mut RenderPipelineColorAttachmentDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl ForeignTypeRef for RenderPipelineColorAttachmentDescriptorRef
impl ForeignTypeRef for RenderPipelineColorAttachmentDescriptorRef
Source§type CType = MTLRenderPipelineColorAttachmentDescriptor
type CType = MTLRenderPipelineColorAttachmentDescriptor
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for RenderPipelineColorAttachmentDescriptorRef
impl Message for RenderPipelineColorAttachmentDescriptorRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
impl Send for RenderPipelineColorAttachmentDescriptorRef
impl Sync for RenderPipelineColorAttachmentDescriptorRef
Source§impl ToOwned for RenderPipelineColorAttachmentDescriptorRef
impl ToOwned for RenderPipelineColorAttachmentDescriptorRef
Source§type Owned = RenderPipelineColorAttachmentDescriptor
type Owned = RenderPipelineColorAttachmentDescriptor
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> RenderPipelineColorAttachmentDescriptor
fn to_owned(&self) -> RenderPipelineColorAttachmentDescriptor
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RenderPipelineColorAttachmentDescriptorRef
impl Freeze for RenderPipelineColorAttachmentDescriptorRef
impl Unpin for RenderPipelineColorAttachmentDescriptorRef
impl UnsafeUnpin for RenderPipelineColorAttachmentDescriptorRef
impl UnwindSafe for RenderPipelineColorAttachmentDescriptorRef
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