xref: /aosp_15_r20/external/skia/src/sksl/SkSLModule.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 #include "src/sksl/SkSLModule.h"
9 
10 namespace SkSL {
11 
ModuleTypeToString(ModuleType type)12 const char* ModuleTypeToString(ModuleType type) {
13 #define M(type) case ModuleType::type: return #type;
14     switch (type) {
15         SKSL_MODULE_LIST(M)
16         default: return "unknown";
17     }
18 #undef M
19 }
20 
21 }  // namespace SkSL
22