Halide
Halide::Internal::StubInputBuffer< T > Class Template Reference

StubInputBuffer is the placeholder that a Stub uses when it requires a Buffer for an input (rather than merely a Func or Expr). More...

#include <Generator.h>

Public Member Functions

 StubInputBuffer ()=default
 
template<typename T2 >
 StubInputBuffer (const Buffer< T2 > &b)
 

Detailed Description

template<typename T = void>
class Halide::Internal::StubInputBuffer< T >

StubInputBuffer is the placeholder that a Stub uses when it requires a Buffer for an input (rather than merely a Func or Expr).

It is constructed to allow only two possible sorts of input: – Assignment of an Input<Buffer<>>, with compatible type and dimensions, essentially allowing us to pipe a parameter from an enclosing Generator to an internal Stub. – Assignment of a Buffer<>, with compatible type and dimensions, causing the Input<Buffer<>> to become a precompiled buffer in the generated code.

Definition at line 1271 of file Generator.h.

Constructor & Destructor Documentation

◆ StubInputBuffer() [1/2]

template<typename T = void>
Halide::Internal::StubInputBuffer< T >::StubInputBuffer ( )
default

◆ StubInputBuffer() [2/2]

template<typename T = void>
template<typename T2 >
Halide::Internal::StubInputBuffer< T >::StubInputBuffer ( const Buffer< T2 > &  b)
inline

Definition at line 1303 of file Generator.h.


The documentation for this class was generated from the following file: