Debian Codegraph @

src/sksl/SkSLGraphiteModules.h

raw
1 /*
2 * Copyright 2024 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_GRAPHITE_MODULES
9 #define SKSL_GRAPHITE_MODULES
10
11 namespace SkSL::Loader {
12 struct GraphiteModules {
13 const char* fFragmentShader;
14 const char* fVertexShader;
15 };
16
17 // These need to be two different functions so we can implement them in two different files.
18 // In particular, the GetGraphiteModules() needs to be implemented in a graphite specific
19 // file, but SetGraphiteModuleLoader needs to be implemented in the common file (used by both
20 // Ganesh and Graphite).
21 GraphiteModules GetGraphiteModules();
22 void SetGraphiteModuleData(const GraphiteModules&);
23
24 } // namespace SkSL::Loader
25
26 #endif // SKSL_GRAPHITE_MODULES