2021-04-16 18:54:43 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2021-07-20 17:16:57 +00:00
|
|
|
#include "include/effects/SkRuntimeEffect.h"
|
2021-04-16 18:54:43 +00:00
|
|
|
#include "include/sksl/DSL.h"
|
|
|
|
|
|
|
|
namespace SkSL {
|
|
|
|
|
|
|
|
class Compiler;
|
|
|
|
|
|
|
|
namespace dsl {
|
|
|
|
|
|
|
|
#ifndef SKSL_STANDALONE
|
|
|
|
|
|
|
|
void StartRuntimeShader(SkSL::Compiler* compiler);
|
|
|
|
|
2021-07-20 17:16:57 +00:00
|
|
|
sk_sp<SkRuntimeEffect> EndRuntimeShader(SkRuntimeEffect::Options options = {});
|
2021-04-16 18:54:43 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace dsl
|
|
|
|
|
|
|
|
} // namespace SkSL
|
|
|
|
|
|
|
|
#endif
|