pub struct RenderPipelineDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = RenderPipelineDescriptorRef>§
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
pub fn vertex_function(&self) -> Option<&FunctionRef>
pub fn set_vertex_function(&self, function: Option<&FunctionRef>)
pub fn fragment_function(&self) -> Option<&FunctionRef>
pub fn set_fragment_function(&self, function: Option<&FunctionRef>)
pub fn vertex_descriptor(&self) -> Option<&VertexDescriptorRef>
pub fn set_vertex_descriptor(&self, descriptor: Option<&VertexDescriptorRef>)
Sourcepub fn sample_count(&self) -> NSUInteger
pub fn sample_count(&self) -> NSUInteger
DEPRECATED - aliases rasterSampleCount property
Sourcepub fn set_sample_count(&self, count: NSUInteger)
pub fn set_sample_count(&self, count: NSUInteger)
DEPRECATED - aliases rasterSampleCount property
pub fn raster_sample_count(&self) -> NSUInteger
pub fn set_raster_sample_count(&self, count: NSUInteger)
pub fn max_vertex_amplification_count(&self) -> NSUInteger
pub fn set_max_vertex_amplification_count(&self, count: NSUInteger)
pub fn is_alpha_to_coverage_enabled(&self) -> bool
pub fn set_alpha_to_coverage_enabled(&self, enabled: bool)
pub fn is_alpha_to_one_enabled(&self) -> bool
pub fn set_alpha_to_one_enabled(&self, enabled: bool)
pub fn is_rasterization_enabled(&self) -> bool
pub fn set_rasterization_enabled(&self, enabled: bool)
pub fn color_attachments( &self, ) -> &RenderPipelineColorAttachmentDescriptorArrayRef
pub fn depth_attachment_pixel_format(&self) -> MTLPixelFormat
pub fn set_depth_attachment_pixel_format(&self, pixel_format: MTLPixelFormat)
pub fn stencil_attachment_pixel_format(&self) -> MTLPixelFormat
pub fn set_stencil_attachment_pixel_format(&self, pixel_format: MTLPixelFormat)
pub fn input_primitive_topology(&self) -> MTLPrimitiveTopologyClass
pub fn set_input_primitive_topology(&self, topology: MTLPrimitiveTopologyClass)
pub fn support_indirect_command_buffers(&self) -> bool
pub fn set_support_indirect_command_buffers(&self, support: bool)
pub fn vertex_buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>
pub fn fragment_buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>
Sourcepub fn binary_archives(&self) -> Vec<BinaryArchive>
pub fn binary_archives(&self) -> Vec<BinaryArchive>
API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec
Sourcepub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])
pub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])
API_AVAILABLE(macos(11.0), ios(14.0)); Marshal from Rust slice
Sourcepub fn fragment_linked_functions(&self) -> &LinkedFunctionsRef
pub fn fragment_linked_functions(&self) -> &LinkedFunctionsRef
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn set_fragment_linked_functions(&self, functions: &LinkedFunctionsRef)
pub fn set_fragment_linked_functions(&self, functions: &LinkedFunctionsRef)
API_AVAILABLE(macos(11.0), ios(14.0));
pub fn reset(&self)
Trait Implementations§
Source§impl AsMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
impl AsMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
Source§fn as_mut(&mut self) -> &mut RenderPipelineDescriptorRef
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
impl AsRef<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
Source§fn as_ref(&self) -> &RenderPipelineDescriptorRef
fn as_ref(&self) -> &RenderPipelineDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
impl Borrow<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
Source§fn borrow(&self) -> &RenderPipelineDescriptorRef
fn borrow(&self) -> &RenderPipelineDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
impl BorrowMut<RenderPipelineDescriptorRef> for RenderPipelineDescriptor
Source§fn borrow_mut(&mut self) -> &mut RenderPipelineDescriptorRef
fn borrow_mut(&mut self) -> &mut RenderPipelineDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for RenderPipelineDescriptor
impl Clone for RenderPipelineDescriptor
Source§fn clone(&self) -> RenderPipelineDescriptor
fn clone(&self) -> RenderPipelineDescriptor
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 Debug for RenderPipelineDescriptor
impl Debug for RenderPipelineDescriptor
Source§impl Deref for RenderPipelineDescriptor
impl Deref for RenderPipelineDescriptor
Source§type Target = RenderPipelineDescriptorRef
type Target = RenderPipelineDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &RenderPipelineDescriptorRef
fn deref(&self) -> &RenderPipelineDescriptorRef
Dereferences the value.
Source§impl DerefMut for RenderPipelineDescriptor
impl DerefMut for RenderPipelineDescriptor
Source§fn deref_mut(&mut self) -> &mut RenderPipelineDescriptorRef
fn deref_mut(&mut self) -> &mut RenderPipelineDescriptorRef
Mutably dereferences the value.
Source§impl Drop for RenderPipelineDescriptor
impl Drop for RenderPipelineDescriptor
Source§impl ForeignType for RenderPipelineDescriptor
impl ForeignType for RenderPipelineDescriptor
Source§type CType = MTLRenderPipelineDescriptor
type CType = MTLRenderPipelineDescriptor
The raw C type.
Source§type Ref = RenderPipelineDescriptorRef
type Ref = RenderPipelineDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(
ptr: *mut MTLRenderPipelineDescriptor,
) -> RenderPipelineDescriptor
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
fn as_ptr(&self) -> *mut MTLRenderPipelineDescriptor
Returns a raw pointer to the wrapped value.
impl Send for RenderPipelineDescriptor
impl Sync for RenderPipelineDescriptor
Auto Trait Implementations§
impl Freeze for RenderPipelineDescriptor
impl RefUnwindSafe for RenderPipelineDescriptor
impl Unpin for RenderPipelineDescriptor
impl UnwindSafe for RenderPipelineDescriptor
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)