https://github.com/halide/Halide
Raw File
Tip revision: 9f7bf4d60494dc4f27af045d045c2d7a12df3643 authored by Steven Johnson on 21 June 2021, 18:51:26 UTC
wip
Tip revision: 9f7bf4d
Lerp.h
#ifndef HALIDE_LERP_H
#define HALIDE_LERP_H

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

#include "Expr.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, const Expr &weight);

}  // namespace Internal
}  // namespace Halide

#endif
back to top