blob: 3d9b9909127267219d8472424f1981c7823a8fa5 [file] [log] [blame]
Ethan Nicholas624a5292021-04-16 14:54:43 -04001/*
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 Osman77046a72021-07-20 13:16:57 -040011#include "include/effects/SkRuntimeEffect.h"
Ethan Nicholas624a5292021-04-16 14:54:43 -040012#include "include/sksl/DSL.h"
13
Ethan Nicholas624a5292021-04-16 14:54:43 -040014namespace SkSL {
15
16class Compiler;
17
18namespace dsl {
19
20#ifndef SKSL_STANDALONE
21
22void StartRuntimeShader(SkSL::Compiler* compiler);
23
Brian Osman77046a72021-07-20 13:16:57 -040024sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {});
Ethan Nicholas624a5292021-04-16 14:54:43 -040025
26#endif
27
28} // namespace dsl
29
30} // namespace SkSL
31
32#endif