https://github.com/halide/Halide
Raw File
Tip revision: 04cb3808d4ea36d8c8a2630e16a746893488326d authored by Steven Johnson on 12 October 2018, 19:28:36 UTC
Stage ctor should assert that definition is defined
Tip revision: 04cb380
Lerp.h
#ifndef HALIDE_LERP_H
#define HALIDE_LERP_H

/** \file
 * Defines methods for converting a lerp intrinsic into Halide IR.
 */

#include "IR.h"

namespace Halide {
namespace Internal {

/** Build Halide IR that computes a lerp. Use by codegen targets that
 * don't have a native lerp. */
Expr lower_lerp(Expr zero_val, Expr one_val, Expr weight);

}  // namespace Internal
}  // namespace Halide

#endif
back to top