xref: /aosp_15_r20/external/skia/src/sksl/codegen/SkSLWGSLValidator.h (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 #ifndef SKSL_WGSLVALIDATOR
9 #define SKSL_WGSLVALIDATOR
10 
11 #include <string>
12 #include <string_view>
13 
14 namespace SkSL {
15 
16 class ErrorReporter;
17 
18 bool ValidateWGSL(ErrorReporter& reporter, std::string_view wgsl, std::string* warnings);
19 bool ValidateWGSLVerbose(ErrorReporter& reporter, std::string_view wgsl, std::string* warnings);
20 
21 }  // namespace SkSL
22 
23 #endif
24