| 155 | } |
| 156 | |
| 157 | MTL::CommandBuffer* open_cb(StreamImpl* s) { |
| 158 | if (!s->cb) { |
| 159 | s->cb = s->q->commandBufferWithUnretainedReferences(); |
| 160 | s->cb->retain(); |
| 161 | ++rt().stats.command_buffers; |
| 162 | } |
| 163 | return s->cb; |
| 164 | } |
| 165 | void end_encoder(StreamImpl* s) { |
| 166 | if (s->enc) { s->enc->endEncoding(); s->enc = nullptr; } |
| 167 | } |
no outgoing calls
no test coverage detected