pub struct CompilerDescriptor(/* private fields */);Expand description
Descriptor for creating a compiler.
C++ equivalent: MTL4::CompilerDescriptor
Implementations§
Source§impl CompilerDescriptor
impl CompilerDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CompilerDescriptor from a raw pointer.
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn pipeline_data_set_serializer(&self) -> Option<PipelineDataSetSerializer>
pub fn pipeline_data_set_serializer(&self) -> Option<PipelineDataSetSerializer>
Get the pipeline data set serializer.
C++ equivalent: PipelineDataSetSerializer* pipelineDataSetSerializer() const
Sourcepub fn set_pipeline_data_set_serializer(
&self,
serializer: &PipelineDataSetSerializer,
)
pub fn set_pipeline_data_set_serializer( &self, serializer: &PipelineDataSetSerializer, )
Set the pipeline data set serializer.
C++ equivalent: void setPipelineDataSetSerializer(const MTL4::PipelineDataSetSerializer*)
Trait Implementations§
Source§impl Clone for CompilerDescriptor
impl Clone for CompilerDescriptor
Source§impl Debug for CompilerDescriptor
impl Debug for CompilerDescriptor
Source§impl Drop for CompilerDescriptor
impl Drop for CompilerDescriptor
Source§impl Referencing for CompilerDescriptor
impl Referencing for CompilerDescriptor
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 CompilerDescriptor
impl Sync for CompilerDescriptor
Auto Trait Implementations§
impl Freeze for CompilerDescriptor
impl RefUnwindSafe for CompilerDescriptor
impl Unpin for CompilerDescriptor
impl UnwindSafe for CompilerDescriptor
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