/* * 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_FPS #define SKSL_DSL_FPS #include "include/sksl/DSL.h" #if !defined(SKSL_STANDALONE) && SK_SUPPORT_GPU #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" namespace SkSL { namespace dsl { void StartFragmentProcessor(GrGLSLFragmentProcessor* processor, GrGLSLFragmentProcessor::EmitArgs* emitArgs); void EndFragmentProcessor(); DSLVar sk_SampleCoord(); DSLExpression SampleChild(int index, DSLExpression coords = DSLExpression()); GrGLSLUniformHandler::UniformHandle VarUniformHandle(const DSLVar& var); } // namespace dsl } // namespace SkSL #endif // !defined(SKSL_STANDALONE) && SK_SUPPORT_GPU #endif