withMetalTexture<T> method
- T use()
Gets the Metal texture of an acquired frame.
See mln_acquired_frame_get_metal_texture in the
C API reference.
Errors:
Status.targetLostwhen the session failed, or you detached, abandoned, or disposed it.
Implementation
T withMetalTexture<T>(T Function(ScopedMetalTextureFrame view) use) =>
_NativeViewScope(
_state,
raw.mln_acquired_frame_view_begin,
raw.mln_acquired_frame_view_end,
).use(
(scope) => use(ScopedMetalTextureFrame._(scope, _getMetalTexture())),
);