MCPcopy Create free account
hub / github.com/Niko1221/Strata / open_cb

Function open_cb

engine/metal/src/gpu/runtime.cpp:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157MTL::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}
165void end_encoder(StreamImpl* s) {
166 if (s->enc) { s->enc->endEncoding(); s->enc = nullptr; }
167}

Callers 4

encoderFunction · 0.85
encode_copyFunction · 0.85
encode_fillFunction · 0.85
wait_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected