1#ifndef HALIDE_IMAGE_PARAM_H
2#define HALIDE_IMAGE_PARAM_H
25 friend class ::Halide::Internal::GeneratorInput_Buffer;
33 Func create_func()
const;
66 template<
typename... Args>
68 return func(std::forward<Args>(args)...);
Defines Func - the front-end handle on a halide function, and related classes.
Classes for declaring output image parameters to halide pipelines.
#define HALIDE_NO_USER_CODE_INLINE
Defines the Var - the front-end variable.
An Image parameter to a halide pipeline.
ImageParam(Type t, int d, const std::string &n)
Construct an image parameter of the given type and dimensionality, with the given name.
Expr operator()(std::vector< Expr >) const
Expr operator()(std::vector< Var >) const
Func in(const std::vector< Func > &fs)
Func in(const Func &f)
Creates and returns a new Func that wraps this ImageParam.
void set(const Buffer<> &im)
Bind an Image to this ImageParam.
HALIDE_NO_USER_CODE_INLINE Expr operator()(Args &&...args) const
Construct an expression which loads from this image parameter.
ImageParam()=default
Construct a nullptr image parameter handle.
void reset()
Unbind any bound Buffer.
ImageParam & add_trace_tag(const std::string &trace_tag)
Add a trace tag to this ImageParam's Func.
void trace_loads()
Trace all loads from this ImageParam by emitting calls to halide_trace.
ImageParam(Type t, int d)
Construct an image parameter of the given type and dimensionality, with an auto-generated unique name...
Buffer get() const
Get a reference to the Buffer bound to this ImageParam.
A handle on the output buffer of a pipeline.
Func func
If Input: Func representation of the ImageParam.
A reference-counted handle to a parameter to a halide pipeline.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
A struct representing an argument to a halide-generated function.
A fragment of Halide syntax.
Types in the halide type system.