discard method

void discard()

Gives up an acquired frame without saying when your GPU stops reading it.

Because your GPU may still read the frame's texture, the session never renders into that texture again.

See mln_acquired_frame_discard in the C API reference.

Implementation

void discard() => _state.close(
  (handle) => raw.mln_acquired_frame_discard(handle.raw, nativeDiagnostic),
);