pub struct StitchedFunctionDescriptor(/* private fields */);Expand description
Descriptor for stitched functions.
C++ equivalent: MTL4::StitchedFunctionDescriptor
StitchedFunctionDescriptor extends FunctionDescriptor to support function stitching with a graph-based composition model.
Implementations§
Source§impl StitchedFunctionDescriptor
impl StitchedFunctionDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a StitchedFunctionDescriptor from a raw pointer.
Sourcepub fn function_graph(&self) -> Option<FunctionStitchingGraph>
pub fn function_graph(&self) -> Option<FunctionStitchingGraph>
Get the function graph.
C++ equivalent: MTL::FunctionStitchingGraph* functionGraph() const
Sourcepub fn set_function_graph(&self, graph: &FunctionStitchingGraph)
pub fn set_function_graph(&self, graph: &FunctionStitchingGraph)
Set the function graph.
C++ equivalent: void setFunctionGraph(const MTL::FunctionStitchingGraph*)
Sourcepub fn function_descriptors_raw(&self) -> *mut c_void
pub fn function_descriptors_raw(&self) -> *mut c_void
Get the function descriptors array (as raw pointer to NSArray).
C++ equivalent: NS::Array* functionDescriptors() const
Sourcepub fn set_function_descriptors_raw(&self, descriptors: *const c_void)
pub fn set_function_descriptors_raw(&self, descriptors: *const c_void)
Set the function descriptors array (from raw pointer to NSArray).
C++ equivalent: void setFunctionDescriptors(const NS::Array*)
Trait Implementations§
Source§impl Clone for StitchedFunctionDescriptor
impl Clone for StitchedFunctionDescriptor
Source§impl Debug for StitchedFunctionDescriptor
impl Debug for StitchedFunctionDescriptor
Source§impl Default for StitchedFunctionDescriptor
impl Default for StitchedFunctionDescriptor
Source§impl Drop for StitchedFunctionDescriptor
impl Drop for StitchedFunctionDescriptor
Source§impl Referencing for StitchedFunctionDescriptor
impl Referencing for StitchedFunctionDescriptor
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for StitchedFunctionDescriptor
impl Sync for StitchedFunctionDescriptor
Auto Trait Implementations§
impl Freeze for StitchedFunctionDescriptor
impl RefUnwindSafe for StitchedFunctionDescriptor
impl Unpin for StitchedFunctionDescriptor
impl UnwindSafe for StitchedFunctionDescriptor
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