https://github.com/halide/Halide
Raw File
Tip revision: d7d662c0cad38b7ba326df2dadf4c1bc9a7d1a87 authored by Steven Johnson on 25 February 2020, 17:50:03 UTC
Merge branch 'master' into srj-alloca
Tip revision: d7d662c
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 "IR.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(Stmt s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top