| 166 | if (s->enc) { s->enc->endEncoding(); s->enc = nullptr; } |
| 167 | } |
| 168 | MTL::ComputeCommandEncoder* encoder(StreamImpl* s) { |
| 169 | if (!s->enc) s->enc = open_cb(s)->computeCommandEncoder(); // serial dispatch: each dispatch sees the last |
| 170 | return s->enc; |
| 171 | } |
| 172 | void flush(StreamImpl* s) { |
| 173 | if (!s->cb) return; |
| 174 | end_encoder(s); |
no test coverage detected