aboutsummaryrefslogtreecommitdiff
path: root/src/deps/skia/include/sksl/DSLRuntimeEffects.h
blob: 3d9b9909127267219d8472424f1981c7823a8fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright 2021 Google LLC.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SKSL_DSL_RUNTIME_EFFECTS
#define SKSL_DSL_RUNTIME_EFFECTS

#include "include/effects/SkRuntimeEffect.h"
#include "include/sksl/DSL.h"

namespace SkSL {

class Compiler;

namespace dsl {

#ifndef SKSL_STANDALONE

void StartRuntimeShader(SkSL::Compiler* compiler);

sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {});

#endif

} // namespace dsl

} // namespace SkSL

#endif