77046a7f0f
It's still accessible internally (and by default when using SkMakeRuntimeEffect), but we don't want clients using this. If we can come up with a simple and consistent coordinate model that doesn't expose implementation details, we'll revisit this. Change-Id: I77726830480a286541ae887f9cd9822eb10ea913 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/430422 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
33 lines
554 B
C++
33 lines
554 B
C++
/*
|
|
* 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
|