Struct metal::RenderPipelineDescriptorRef
source · pub struct RenderPipelineDescriptorRef(/* private fields */);
Expand description
A borrowed reference to a RenderPipelineDescriptor
.
Implementations§
source§impl RenderPipelineDescriptorRef
impl 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 Debug for RenderPipelineDescriptorRef
impl Debug for RenderPipelineDescriptorRef
source§impl ForeignTypeRef for RenderPipelineDescriptorRef
impl ForeignTypeRef for RenderPipelineDescriptorRef
§type CType = MTLRenderPipelineDescriptor
type CType = MTLRenderPipelineDescriptor
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§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type. Read more
source§impl Message for RenderPipelineDescriptorRef
impl Message for RenderPipelineDescriptorRef
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
source§impl ToOwned for RenderPipelineDescriptorRef
impl ToOwned for RenderPipelineDescriptorRef
§type Owned = RenderPipelineDescriptor
type Owned = RenderPipelineDescriptor
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> RenderPipelineDescriptor
fn to_owned(&self) -> RenderPipelineDescriptor
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
impl Send for RenderPipelineDescriptorRef
impl Sync for RenderPipelineDescriptorRef
Auto Trait Implementations§
impl Freeze for RenderPipelineDescriptorRef
impl !RefUnwindSafe for RenderPipelineDescriptorRef
impl Unpin for RenderPipelineDescriptorRef
impl UnwindSafe for RenderPipelineDescriptorRef
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