Go to the documentation of this file. 1 #ifndef HALIDE_IMAGE_PARAM_H
2 #define HALIDE_IMAGE_PARAM_H
19 class GeneratorInput_Buffer;
25 friend class ::Halide::Internal::GeneratorInput_Buffer;
33 Func create_func()
const;
66 template<
typename... Args>
68 return func(std::forward<Args>(args)...);
87 operator Func()
const;
127 Func in(
const std::vector<Func> &fs);
A reference-counted handle to a parameter to a halide pipeline.
ImageParam & add_trace_tag(const std::string &trace_tag)
Add a trace tag to this ImageParam's Func.
Func func
If Input: Func representation of the ImageParam.
A struct representing an argument to a halide-generated function.
An Image parameter to a halide pipeline.
void set(const Buffer<> &im)
Bind an Image to this ImageParam.
Types in the halide type system.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
void reset()
Unbind any bound Buffer.
ImageParam()=default
Construct a nullptr image parameter handle.
A handle on the output buffer of a pipeline.
HALIDE_NO_USER_CODE_INLINE Expr operator()(Args &&...args) const
Construct an expression which loads from this image parameter.
void trace_loads()
Trace all loads from this ImageParam by emitting calls to halide_trace.
#define HALIDE_NO_USER_CODE_INLINE
Buffer get() const
Get a reference to the Buffer bound to this ImageParam.
A fragment of Halide syntax.