pub struct CaptureScope(/* private fields */);Expand description
A capture scope that defines the boundaries of a GPU capture.
C++ equivalent: MTL::CaptureScope
Implementations§
Source§impl CaptureScope
impl CaptureScope
Sourcepub fn device(&self) -> Device
pub fn device(&self) -> Device
Get the device associated with this capture scope.
C++ equivalent: Device* device() const
Sourcepub fn command_queue(&self) -> Option<CommandQueue>
pub fn command_queue(&self) -> Option<CommandQueue>
Get the command queue associated with this capture scope.
C++ equivalent: CommandQueue* commandQueue() const
Sourcepub fn label(&self) -> Option<String>
pub fn label(&self) -> Option<String>
Get the label for this capture scope.
C++ equivalent: NS::String* label() const
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label for this capture scope.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn begin_scope(&self)
pub fn begin_scope(&self)
Begin the capture scope.
C++ equivalent: void beginScope()
Trait Implementations§
Source§impl Clone for CaptureScope
impl Clone for CaptureScope
Source§impl Debug for CaptureScope
impl Debug for CaptureScope
Source§impl Drop for CaptureScope
impl Drop for CaptureScope
Source§impl Referencing for CaptureScope
impl Referencing for CaptureScope
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 CaptureScope
impl Sync for CaptureScope
Auto Trait Implementations§
impl Freeze for CaptureScope
impl RefUnwindSafe for CaptureScope
impl Unpin for CaptureScope
impl UnwindSafe for CaptureScope
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