pub struct CommitFeedback(/* private fields */);Expand description
Feedback about committed command buffers.
C++ equivalent: MTL4::CommitFeedback
CommitFeedback provides information about the execution of committed command buffers, including GPU timing and error information.
Implementations§
Source§impl CommitFeedback
impl CommitFeedback
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CommitFeedback from a raw pointer.
Sourcepub fn gpu_start_time(&self) -> f64
pub fn gpu_start_time(&self) -> f64
Get the GPU start time.
C++ equivalent: CFTimeInterval GPUStartTime() const
Sourcepub fn gpu_end_time(&self) -> f64
pub fn gpu_end_time(&self) -> f64
Get the GPU end time.
C++ equivalent: CFTimeInterval GPUEndTime() const
Sourcepub fn error(&self) -> Option<Error>
pub fn error(&self) -> Option<Error>
Get the error, if any.
C++ equivalent: NS::Error* error() const
Sourcepub fn gpu_duration(&self) -> f64
pub fn gpu_duration(&self) -> f64
Calculate the GPU execution duration.
Trait Implementations§
Source§impl Clone for CommitFeedback
impl Clone for CommitFeedback
Source§impl Debug for CommitFeedback
impl Debug for CommitFeedback
Source§impl Drop for CommitFeedback
impl Drop for CommitFeedback
Source§impl Referencing for CommitFeedback
impl Referencing for CommitFeedback
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 CommitFeedback
impl Sync for CommitFeedback
Auto Trait Implementations§
impl Freeze for CommitFeedback
impl RefUnwindSafe for CommitFeedback
impl Unpin for CommitFeedback
impl UnwindSafe for CommitFeedback
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