https://github.com/halide/Halide
Raw File
Tip revision: 1727a7169e78b4354160f6410fe7fb6217e75c0f authored by Steven Johnson on 28 May 2020, 23:59:16 UTC
Merge branch 'master' into cmake-no-runtime-debug-symbols
Tip revision: 1727a71
InjectOpenGLIntrinsics.h
#ifndef HALIDE_INJECT_OPENGL_INTRINSICS_H
#define HALIDE_INJECT_OPENGL_INTRINSICS_H

/** \file
 * Defines the lowering pass that injects texture loads and texture
 * stores for opengl.
 */

#include "Expr.h"

namespace Halide {
namespace Internal {

/** Take a statement with for kernel for loops and turn loads and
 * stores inside the loops into OpenGL texture load and store
 * intrinsics. Should only be run when the OpenGL target is active. */
Stmt inject_opengl_intrinsics(const Stmt &s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top