Thanks to visit codestin.com
Credit goes to docs.rs

RenderPassColorAttachmentDescriptor

Struct RenderPassColorAttachmentDescriptor 

Source
pub struct RenderPassColorAttachmentDescriptor(/* private fields */);

Implementations§

Methods from Deref<Target = RenderPassColorAttachmentDescriptorRef>§

Source

pub fn clear_color(&self) -> MTLClearColor

Source

pub fn set_clear_color(&self, clear_color: MTLClearColor)

Methods from Deref<Target = RenderPassAttachmentDescriptorRef>§

Source

pub fn texture(&self) -> Option<&TextureRef>

Source

pub fn set_texture(&self, texture: Option<&TextureRef>)

Source

pub fn level(&self) -> NSUInteger

Source

pub fn set_level(&self, level: NSUInteger)

Source

pub fn slice(&self) -> NSUInteger

Source

pub fn set_slice(&self, slice: NSUInteger)

Source

pub fn depth_plane(&self) -> NSUInteger

Source

pub fn set_depth_plane(&self, depth_plane: NSUInteger)

Source

pub fn resolve_texture(&self) -> Option<&TextureRef>

Source

pub fn set_resolve_texture(&self, resolve_texture: Option<&TextureRef>)

Source

pub fn resolve_level(&self) -> NSUInteger

Source

pub fn set_resolve_level(&self, resolve_level: NSUInteger)

Source

pub fn resolve_slice(&self) -> NSUInteger

Source

pub fn set_resolve_slice(&self, resolve_slice: NSUInteger)

Source

pub fn resolve_depth_plane(&self) -> NSUInteger

Source

pub fn set_resolve_depth_plane(&self, resolve_depth_plane: NSUInteger)

Source

pub fn load_action(&self) -> MTLLoadAction

Source

pub fn set_load_action(&self, load_action: MTLLoadAction)

Source

pub fn store_action(&self) -> MTLStoreAction

Source

pub fn set_store_action(&self, store_action: MTLStoreAction)

Trait Implementations§

Source§

impl AsMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor

Source§

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

Source§

fn as_ref(&self) -> &RenderPassColorAttachmentDescriptorRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor

Source§

fn borrow(&self) -> &RenderPassColorAttachmentDescriptorRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<RenderPassColorAttachmentDescriptorRef> for RenderPassColorAttachmentDescriptor

Source§

fn borrow_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef

Mutably borrows from an owned value. Read more
Source§

impl Clone for RenderPassColorAttachmentDescriptor

Source§

fn clone(&self) -> RenderPassColorAttachmentDescriptor

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderPassColorAttachmentDescriptor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for RenderPassColorAttachmentDescriptor

Source§

type Target = RenderPassColorAttachmentDescriptorRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &RenderPassColorAttachmentDescriptorRef

Dereferences the value.
Source§

impl DerefMut for RenderPassColorAttachmentDescriptor

Source§

fn deref_mut(&mut self) -> &mut RenderPassColorAttachmentDescriptorRef

Mutably dereferences the value.
Source§

impl Drop for RenderPassColorAttachmentDescriptor

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ForeignType for RenderPassColorAttachmentDescriptor

Source§

type CType = MTLRenderPassColorAttachmentDescriptor

The raw C type.
Source§

type Ref = RenderPassColorAttachmentDescriptorRef

The type representing a reference to this type.
Source§

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

Returns a raw pointer to the wrapped value.
Source§

fn into_ptr(self) -> *mut Self::CType

Consumes the wrapper and returns the raw pointer.
Source§

impl From<RenderPassColorAttachmentDescriptor> for RenderPassAttachmentDescriptor

Source§

fn from(item: RenderPassColorAttachmentDescriptor) -> Self

Converts to this type from the input type.
Source§

impl Send for RenderPassColorAttachmentDescriptor

Source§

impl Sync for RenderPassColorAttachmentDescriptor

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.