Ethan Nicholas | 624a529 | 2021-04-16 14:54:43 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2021 Google LLC. |
| 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_DSL_RUNTIME_EFFECTS |
| 9 | #define SKSL_DSL_RUNTIME_EFFECTS |
| 10 | |
Brian Osman | 77046a7 | 2021-07-20 13:16:57 -0400 | [diff] [blame] | 11 | #include "include/effects/SkRuntimeEffect.h" |
Ethan Nicholas | 624a529 | 2021-04-16 14:54:43 -0400 | [diff] [blame] | 12 | #include "include/sksl/DSL.h" |
| 13 | |
Ethan Nicholas | 624a529 | 2021-04-16 14:54:43 -0400 | [diff] [blame] | 14 | namespace SkSL { |
| 15 | |
| 16 | class Compiler; |
| 17 | |
| 18 | namespace dsl { |
| 19 | |
| 20 | #ifndef SKSL_STANDALONE |
| 21 | |
| 22 | void StartRuntimeShader(SkSL::Compiler* compiler); |
| 23 | |
Brian Osman | 77046a7 | 2021-07-20 13:16:57 -0400 | [diff] [blame] | 24 | sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {}); |
Ethan Nicholas | 624a529 | 2021-04-16 14:54:43 -0400 | [diff] [blame] | 25 | |
| 26 | #endif |
| 27 | |
| 28 | } // namespace dsl |
| 29 | |
| 30 | } // namespace SkSL |
| 31 | |
| 32 | #endif |