setScissor method
Where fragments survive. Bounds a draw, and — unlike a clear — is honoured by one. Whole pixels on every API, so a ScreenRect.
Implementation
@override
void setScissor(ScreenRect rect) {
_passOnly('setScissor');
commands.add(RecordedScissor(rect));
}