Creates and manages a Metal capture scope that supports frame capture when using the FlutterMetalLayer backed drawable. More...
#include <context_mtl.h>
Public Member Functions | |
ImpellerMetalCaptureManager (id< MTLDevice > device) | |
Construct a new capture manager from the provided Metal device. More... | |
~ImpellerMetalCaptureManager ()=default | |
bool | CaptureScopeActive () const |
void | StartCapture () |
Begin a new capture scope, no-op if the scope has already started. More... | |
void | FinishCapture () |
End the current capture scope. More... | |
Creates and manages a Metal capture scope that supports frame capture when using the FlutterMetalLayer backed drawable.
Definition at line 37 of file context_mtl.h.
|
explicit |
Construct a new capture manager from the provided Metal device.
Definition at line 470 of file context_mtl.mm.
|
default |
bool impeller::ImpellerMetalCaptureManager::CaptureScopeActive | ( | ) | const |
Whether or not the Impeller capture scope is active.
This is distinct from whether or not there is a session recording the capture. That can be checked with [[MTLCaptureManager sharedCaptureManager] isCapturing].
Definition at line 476 of file context_mtl.mm.
void impeller::ImpellerMetalCaptureManager::FinishCapture | ( | ) |
End the current capture scope.
Definition at line 488 of file context_mtl.mm.
void impeller::ImpellerMetalCaptureManager::StartCapture | ( | ) |
Begin a new capture scope, no-op if the scope has already started.
Definition at line 480 of file context_mtl.mm.