Internal::StubOutputBuffer#

template<typename T = void>
class StubOutputBuffer : public Halide::Internal::StubOutputBufferBase#

StubOutputBuffer is the placeholder that a Stub uses when it requires a Buffer for an output (rather than merely a Func).

It is constructed to allow only two possible sorts of things: &#8212; Assignment to an Output<Buffer<>>, with compatible type and dimensions, essentially allowing us to pipe a parameter from the result of a Stub to an enclosing Generator &#8212; Realization into a Buffer<>; this is useful only in JIT compilation modes (and shouldn’t be usable otherwise)

It is deliberate that StubOutputBuffer is not (easily) convertible to Func.