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_FPS 9 #define SKSL_DSL_FPS 10 11 #include "include/sksl/DSL.h" 12 13 #if !defined(SKSL_STANDALONE) && SK_SUPPORT_GPU 14 15 #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" 16 17 namespace SkSL { 18 19 namespace dsl { 20 21 void StartFragmentProcessor(GrGLSLFragmentProcessor* processor, 22 GrGLSLFragmentProcessor::EmitArgs* emitArgs); 23 24 void EndFragmentProcessor(); 25 26 DSLVar sk_SampleCoord(); 27 28 DSLExpression SampleChild(int index, DSLExpression coords = DSLExpression()); 29 30 GrGLSLUniformHandler::UniformHandle VarUniformHandle(const DSLVar& var); 31 32 } // namespace dsl 33 34 } // namespace SkSL 35 36 #endif // !defined(SKSL_STANDALONE) && SK_SUPPORT_GPU 37 38 #endif 39