pub struct CommitOptions(/* private fields */);Expand description
Options for committing command buffers.
C++ equivalent: MTL4::CommitOptions
Implementations§
Source§impl CommitOptions
impl CommitOptions
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CommitOptions from a raw pointer.
Sourcepub fn add_feedback_handler<F>(&self, handler: F)
pub fn add_feedback_handler<F>(&self, handler: F)
Add a feedback handler to be called when the commit completes.
C++ equivalent: void addFeedbackHandler(void (^)(MTL4::CommitFeedback*))
The handler is called with the commit feedback when the commit completes.
Trait Implementations§
Source§impl Clone for CommitOptions
impl Clone for CommitOptions
Source§impl Drop for CommitOptions
impl Drop for CommitOptions
Source§impl Referencing for CommitOptions
impl Referencing for CommitOptions
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 CommitOptions
impl Sync for CommitOptions
Auto Trait Implementations§
impl Freeze for CommitOptions
impl RefUnwindSafe for CommitOptions
impl Unpin for CommitOptions
impl UnwindSafe for CommitOptions
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