Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSLWGSLCodeGenerator.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google Inc.
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_WGSLCODEGENERATOR
9#define SKSL_WGSLCODEGENERATOR
10
11#include <string>
12
13namespace SkSL {
14
15class OutputStream;
16struct Program;
17struct ShaderCaps;
18
19/**
20 * Convert a Program into WGSL code.
21 */
22bool ToWGSL(Program& program, const ShaderCaps* caps, OutputStream& out);
23bool ToWGSL(Program& program, const ShaderCaps* caps, std::string* out);
24
25} // namespace SkSL
26
27#endif // SKSL_WGSLCODEGENERATOR
bool ToWGSL(Program &program, const ShaderCaps *caps, OutputStream &out)