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

RenderPipelineDescriptor

Struct RenderPipelineDescriptor 

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

Implementations§

Methods from Deref<Target = RenderPipelineDescriptorRef>§

Source

pub fn label(&self) -> &str

Source

pub fn set_label(&self, label: &str)

Source

pub fn vertex_function(&self) -> Option<&FunctionRef>

Source

pub fn set_vertex_function(&self, function: Option<&FunctionRef>)

Source

pub fn fragment_function(&self) -> Option<&FunctionRef>

Source

pub fn set_fragment_function(&self, function: Option<&FunctionRef>)

Source

pub fn vertex_descriptor(&self) -> Option<&VertexDescriptorRef>

Source

pub fn set_vertex_descriptor(&self, descriptor: Option<&VertexDescriptorRef>)

Source

pub fn sample_count(&self) -> NSUInteger

DEPRECATED - aliases rasterSampleCount property

Source

pub fn set_sample_count(&self, count: NSUInteger)

DEPRECATED - aliases rasterSampleCount property

Source

pub fn raster_sample_count(&self) -> NSUInteger

Source

pub fn set_raster_sample_count(&self, count: NSUInteger)

Source

pub fn max_vertex_amplification_count(&self) -> NSUInteger

Source

pub fn set_max_vertex_amplification_count(&self, count: NSUInteger)

Source

pub fn is_alpha_to_coverage_enabled(&self) -> bool

Source

pub fn set_alpha_to_coverage_enabled(&self, enabled: bool)

Source

pub fn is_alpha_to_one_enabled(&self) -> bool

Source

pub fn set_alpha_to_one_enabled(&self, enabled: bool)

Source

pub fn is_rasterization_enabled(&self) -> bool

Source

pub fn set_rasterization_enabled(&self, enabled: bool)

Source

pub fn color_attachments( &self, ) -> &RenderPipelineColorAttachmentDescriptorArrayRef

Source

pub fn depth_attachment_pixel_format(&self) -> MTLPixelFormat

Source

pub fn set_depth_attachment_pixel_format(&self, pixel_format: MTLPixelFormat)

Source

pub fn stencil_attachment_pixel_format(&self) -> MTLPixelFormat

Source

pub fn set_stencil_attachment_pixel_format(&self, pixel_format: MTLPixelFormat)

Source

pub fn input_primitive_topology(&self) -> MTLPrimitiveTopologyClass

Source

pub fn set_input_primitive_topology(&self, topology: MTLPrimitiveTopologyClass)

Source

pub fn support_indirect_command_buffers(&self) -> bool

Source

pub fn set_support_indirect_command_buffers(&self, support: bool)

Source

pub fn vertex_buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>

Source

pub fn fragment_buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>

Source

pub fn binary_archives(&self) -> Vec<BinaryArchive>

API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec

Source

pub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])

API_AVAILABLE(macos(11.0), ios(14.0)); Marshal from Rust slice

Source

pub fn fragment_linked_functions(&self) -> &LinkedFunctionsRef

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn set_fragment_linked_functions(&self, functions: &LinkedFunctionsRef)

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn reset(&self)

Trait Implementations§

Source§

impl AsMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor

Source§

fn as_mut(&mut self) -> &mut RenderPipelineDescriptorRef

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

impl AsRef<RenderPipelineDescriptorRef> for RenderPipelineDescriptor

Source§

fn as_ref(&self) -> &RenderPipelineDescriptorRef

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

impl Borrow<RenderPipelineDescriptorRef> for RenderPipelineDescriptor

Source§

fn borrow(&self) -> &RenderPipelineDescriptorRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl Clone for RenderPipelineDescriptor

Source§

fn clone(&self) -> RenderPipelineDescriptor

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 RenderPipelineDescriptor

Source§

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

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

impl Deref for RenderPipelineDescriptor

Source§

type Target = RenderPipelineDescriptorRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &RenderPipelineDescriptorRef

Dereferences the value.
Source§

impl DerefMut for RenderPipelineDescriptor

Source§

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

Mutably dereferences the value.
Source§

impl Drop for RenderPipelineDescriptor

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ForeignType for RenderPipelineDescriptor

Source§

type CType = MTLRenderPipelineDescriptor

The raw C type.
Source§

type Ref = RenderPipelineDescriptorRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr( ptr: *mut MTLRenderPipelineDescriptor, ) -> RenderPipelineDescriptor

Constructs an instance of this type from its raw type. Read more
Source§

fn as_ptr(&self) -> *mut MTLRenderPipelineDescriptor

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 Send for RenderPipelineDescriptor

Source§

impl Sync for RenderPipelineDescriptor

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.