| 1 |
/* |
| 2 |
* Copyright 2016 Google Inc. |
| 3 |
* |
| 4 |
* Use of this source code is governed by a BSD-style license that can be |
| 5 |
* found in the LICENSE file. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef SKSL_METALCODEGENERATOR |
| 9 |
#define SKSL_METALCODEGENERATOR |
| 10 |
|
| 11 |
namespace SkSL { |
| 12 |
|
| 13 |
struct NativeShader; |
| 14 |
enum class PrettyPrint : bool; |
| 15 |
class OutputStream; |
| 16 |
struct Program; |
| 17 |
struct ShaderCaps; |
| 18 |
|
| 19 |
/** |
| 20 |
* Converts a Program into Metal code. |
| 21 |
*/ |
| 22 |
bool ToMetal(Program& program, const ShaderCaps* caps, OutputStream& out, PrettyPrint); |
| 23 |
bool ToMetal(Program& program, const ShaderCaps* caps, OutputStream& out); |
| 24 |
bool ToMetal(Program& program, const ShaderCaps* caps, NativeShader* out); |
| 25 |
|
| 26 |
} // namespace SkSL |
| 27 |
|
| 28 |
#endif |