pub struct CaptureManager(/* private fields */);Implementations§
Methods from Deref<Target = CaptureManagerRef>§
pub fn new_capture_scope_with_device(&self, device: &DeviceRef) -> CaptureScope
pub fn new_capture_scope_with_command_queue( &self, command_queue: &CommandQueueRef, ) -> CaptureScope
pub fn default_capture_scope(&self) -> Option<&CaptureScopeRef>
pub fn set_default_capture_scope(&self, scope: &CaptureScopeRef)
Sourcepub fn start_capture(
&self,
descriptor: &CaptureDescriptorRef,
) -> Result<(), String>
pub fn start_capture( &self, descriptor: &CaptureDescriptorRef, ) -> Result<(), String>
Starts capturing with the capture session defined by a descriptor object.
This function will panic if Metal capture is not enabled. Capture can be enabled by either:
- Running from Xcode
- Setting the environment variable
METAL_CAPTURE_ENABLED=1 - Adding an info.plist file containing the
MetalCaptureEnabledkey set toYES
pub fn start_capture_with_device(&self, device: &DeviceRef)
pub fn start_capture_with_command_queue(&self, command_queue: &CommandQueueRef)
pub fn start_capture_with_scope(&self, scope: &CaptureScopeRef)
pub fn stop_capture(&self)
pub fn is_capturing(&self) -> bool
Trait Implementations§
Source§impl AsMut<CaptureManagerRef> for CaptureManager
impl AsMut<CaptureManagerRef> for CaptureManager
Source§fn as_mut(&mut self) -> &mut CaptureManagerRef
fn as_mut(&mut self) -> &mut CaptureManagerRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CaptureManagerRef> for CaptureManager
impl AsRef<CaptureManagerRef> for CaptureManager
Source§fn as_ref(&self) -> &CaptureManagerRef
fn as_ref(&self) -> &CaptureManagerRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<CaptureManagerRef> for CaptureManager
impl Borrow<CaptureManagerRef> for CaptureManager
Source§fn borrow(&self) -> &CaptureManagerRef
fn borrow(&self) -> &CaptureManagerRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<CaptureManagerRef> for CaptureManager
impl BorrowMut<CaptureManagerRef> for CaptureManager
Source§fn borrow_mut(&mut self) -> &mut CaptureManagerRef
fn borrow_mut(&mut self) -> &mut CaptureManagerRef
Mutably borrows from an owned value. Read more
Source§impl Clone for CaptureManager
impl Clone for CaptureManager
Source§fn clone(&self) -> CaptureManager
fn clone(&self) -> CaptureManager
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptureManager
impl Debug for CaptureManager
Source§impl Deref for CaptureManager
impl Deref for CaptureManager
Source§type Target = CaptureManagerRef
type Target = CaptureManagerRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &CaptureManagerRef
fn deref(&self) -> &CaptureManagerRef
Dereferences the value.
Source§impl DerefMut for CaptureManager
impl DerefMut for CaptureManager
Source§fn deref_mut(&mut self) -> &mut CaptureManagerRef
fn deref_mut(&mut self) -> &mut CaptureManagerRef
Mutably dereferences the value.
Source§impl Drop for CaptureManager
impl Drop for CaptureManager
Source§impl ForeignType for CaptureManager
impl ForeignType for CaptureManager
Source§type CType = MTLCaptureManager
type CType = MTLCaptureManager
The raw C type.
Source§type Ref = CaptureManagerRef
type Ref = CaptureManagerRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLCaptureManager) -> CaptureManager
unsafe fn from_ptr(ptr: *mut MTLCaptureManager) -> CaptureManager
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLCaptureManager
fn as_ptr(&self) -> *mut MTLCaptureManager
Returns a raw pointer to the wrapped value.
impl Send for CaptureManager
impl Sync for CaptureManager
Auto Trait Implementations§
impl Freeze for CaptureManager
impl RefUnwindSafe for CaptureManager
impl Unpin for CaptureManager
impl UnwindSafe for CaptureManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)