blob: fb9df4e7157b1d30fe09f564b2184a3b7b3321a3 [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_METALCODEGENERATOR
#define SKSL_METALCODEGENERATOR
namespace SkSL {
struct NativeShader;
enum class PrettyPrint : bool;
class OutputStream;
struct Program;
struct ShaderCaps;
/**
* Converts a Program into Metal code.
*/
bool ToMetal(Program& program, const ShaderCaps* caps, OutputStream& out, PrettyPrint);
bool ToMetal(Program& program, const ShaderCaps* caps, OutputStream& out);
bool ToMetal(Program& program, const ShaderCaps* caps, NativeShader* out);
} // namespace SkSL
#endif