blob: e3b6ea3b19e7d8ac6251d7f73fb12cab1db32e0d [file] [log] [blame]
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_GLSLCODEGENERATOR
#define SKSL_GLSLCODEGENERATOR
namespace SkSL {
struct NativeShader;
enum class PrettyPrint : bool;
class OutputStream;
struct Program;
struct ShaderCaps;
/** Converts a Program into GLSL code. */
bool ToGLSL(Program& program, const ShaderCaps* caps, OutputStream& out, PrettyPrint);
bool ToGLSL(Program& program, const ShaderCaps* caps, OutputStream& out);
bool ToGLSL(Program& program, const ShaderCaps* caps, NativeShader* out);
} // namespace SkSL
#endif