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 11 #include "include/effects/SkRuntimeEffect.h" 12 #include "include/sksl/DSL.h" 13 14 namespace SkSL { 15 16 class Compiler; 17 18 namespace dsl { 19 20 #ifndef SKSL_STANDALONE 21 22 void StartRuntimeShader(SkSL::Compiler* compiler); 23 24 sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {}); 25 26 #endif 27 28 } // namespace dsl 29 30 } // namespace SkSL 31 32 #endif 33