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

Function encoder

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

Source from the content-addressed store, hash-verified

166 if (s->enc) { s->enc->endEncoding(); s->enc = nullptr; }
167}
168MTL::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}
172void flush(StreamImpl* s) {
173 if (!s->cb) return;
174 end_encoder(s);

Callers 1

encode_dispatchFunction · 0.85

Calls 1

open_cbFunction · 0.85

Tested by

no test coverage detected