pub struct RenderPassColorAttachmentDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = RenderPassColorAttachmentDescriptorRef>§
pub fn clear_color(&self) -> MTLClearColor
pub fn set_clear_color(&self, clear_color: MTLClearColor)
Methods from Deref<Target = RenderPassAttachmentDescriptorRef>§
pub fn texture(&self) -> Option<&TextureRef>
pub fn set_texture(&self, texture: Option<&TextureRef>)
pub fn level(&self) -> NSUInteger
pub fn set_level(&self, level: NSUInteger)
pub fn slice(&self) -> NSUInteger
pub fn set_slice(&self, slice: NSUInteger)
pub fn depth_plane(&self) -> NSUInteger
pub fn set_depth_plane(&self, depth_plane: NSUInteger)
pub fn resolve_texture(&self) -> Option<&TextureRef>
pub fn set_resolve_texture(&self, resolve_texture: Option<&TextureRef>)
pub fn resolve_level(&self) -> NSUInteger
pub fn set_resolve_level(&self, resolve_level: NSUInteger)
pub fn resolve_slice(&self) -> NSUInteger
pub fn set_resolve_slice(&self, resolve_slice: NSUInteger)
pub fn resolve_depth_plane(&self) -> NSUInteger
pub fn set_resolve_depth_plane(&self, resolve_depth_plane: NSUInteger)
pub fn load_action(&self) -> MTLLoadAction
pub fn set_load_action(&self, load_action: MTLLoadAction)
pub fn store_action(&self) -> MTLStoreAction
pub fn set_store_action(&self, store_action: MTLStoreAction)
Trait Implementations§
Source§impl AsMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
impl AsMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
Source§fn as_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
fn as_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
impl AsRef<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
Source§fn as_ref(&self) -> &RenderPassColorAttachmentDescriptorRef
fn as_ref(&self) -> &RenderPassColorAttachmentDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
impl Borrow<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
Source§fn borrow(&self) -> &RenderPassColorAttachmentDescriptorRef
fn borrow(&self) -> &RenderPassColorAttachmentDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
impl BorrowMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor
Source§fn borrow_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
fn borrow_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for RenderPassColorAttachmentDescriptor
impl Clone for RenderPassColorAttachmentDescriptor
Source§fn clone(&self) -> RenderPassColorAttachmentDescriptor
fn clone(&self) -> RenderPassColorAttachmentDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Deref for RenderPassColorAttachmentDescriptor
impl Deref for RenderPassColorAttachmentDescriptor
Source§type Target = RenderPassColorAttachmentDescriptorRef
type Target = RenderPassColorAttachmentDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &RenderPassColorAttachmentDescriptorRef
fn deref(&self) -> &RenderPassColorAttachmentDescriptorRef
Dereferences the value.
Source§impl DerefMut for RenderPassColorAttachmentDescriptor
impl DerefMut for RenderPassColorAttachmentDescriptor
Source§fn deref_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
fn deref_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef
Mutably dereferences the value.
Source§impl ForeignType for RenderPassColorAttachmentDescriptor
impl ForeignType for RenderPassColorAttachmentDescriptor
Source§type CType = MTLRenderPassColorAttachmentDescriptor
type CType = MTLRenderPassColorAttachmentDescriptor
The raw C type.
Source§type Ref = RenderPassColorAttachmentDescriptorRef
type Ref = RenderPassColorAttachmentDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(
ptr: *mut MTLRenderPassColorAttachmentDescriptor,
) -> RenderPassColorAttachmentDescriptor
unsafe fn from_ptr( ptr: *mut MTLRenderPassColorAttachmentDescriptor, ) -> RenderPassColorAttachmentDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLRenderPassColorAttachmentDescriptor
fn as_ptr(&self) -> *mut MTLRenderPassColorAttachmentDescriptor
Returns a raw pointer to the wrapped value.
Source§impl From<RenderPassColorAttachmentDescriptor> for RenderPassAttachmentDescriptor
impl From<RenderPassColorAttachmentDescriptor> for RenderPassAttachmentDescriptor
Source§fn from(item: RenderPassColorAttachmentDescriptor) -> Self
fn from(item: RenderPassColorAttachmentDescriptor) -> Self
Converts to this type from the input type.
impl Send for RenderPassColorAttachmentDescriptor
impl Sync for RenderPassColorAttachmentDescriptor
Auto Trait Implementations§
impl Freeze for RenderPassColorAttachmentDescriptor
impl RefUnwindSafe for RenderPassColorAttachmentDescriptor
impl Unpin for RenderPassColorAttachmentDescriptor
impl UnwindSafe for RenderPassColorAttachmentDescriptor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)