Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: src/sksl/SkSLSPIRVCodeGenerator.h

Issue 2288033003: Turned on SkSL->GLSL compiler (Closed)
Patch Set: changed <iostream> to <ostream> Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/sksl/SkSLParser.cpp ('k') | src/sksl/SkSLSPIRVCodeGenerator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SKSL_SPIRVCODEGENERATOR 8 #ifndef SKSL_SPIRVCODEGENERATOR
9 #define SKSL_SPIRVCODEGENERATOR 9 #define SKSL_SPIRVCODEGENERATOR
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void writeProgramElement(const ProgramElement& pe, std::ostream& out); 108 void writeProgramElement(const ProgramElement& pe, std::ostream& out);
109 109
110 SpvId writeInterfaceBlock(const InterfaceBlock& intf); 110 SpvId writeInterfaceBlock(const InterfaceBlock& intf);
111 111
112 SpvId writeFunctionStart(const FunctionDeclaration& f, std::ostream& out); 112 SpvId writeFunctionStart(const FunctionDeclaration& f, std::ostream& out);
113 113
114 SpvId writeFunctionDeclaration(const FunctionDeclaration& f, std::ostream& o ut); 114 SpvId writeFunctionDeclaration(const FunctionDeclaration& f, std::ostream& o ut);
115 115
116 SpvId writeFunction(const FunctionDefinition& f, std::ostream& out); 116 SpvId writeFunction(const FunctionDefinition& f, std::ostream& out);
117 117
118 void writeGlobalVars(const VarDeclarations& v, std::ostream& out); 118 void writeGlobalVars(Program::Kind kind, const VarDeclarations& v, std::ostr eam& out);
119 119
120 void writeVarDeclarations(const VarDeclarations& decl, std::ostream& out); 120 void writeVarDeclarations(const VarDeclarations& decl, std::ostream& out);
121 121
122 SpvId writeVariableReference(const VariableReference& ref, std::ostream& out ); 122 SpvId writeVariableReference(const VariableReference& ref, std::ostream& out );
123 123
124 std::unique_ptr<LValue> getLValue(const Expression& value, std::ostream& out ); 124 std::unique_ptr<LValue> getLValue(const Expression& value, std::ostream& out );
125 125
126 SpvId writeExpression(const Expression& expr, std::ostream& out); 126 SpvId writeExpression(const Expression& expr, std::ostream& out);
127 127
128 SpvId writeIntrinsicCall(const FunctionCall& c, std::ostream& out); 128 SpvId writeIntrinsicCall(const FunctionCall& c, std::ostream& out);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 std::stack<SpvId> fBreakTarget; 258 std::stack<SpvId> fBreakTarget;
259 std::stack<SpvId> fContinueTarget; 259 std::stack<SpvId> fContinueTarget;
260 260
261 friend class PointerLValue; 261 friend class PointerLValue;
262 friend class SwizzleLValue; 262 friend class SwizzleLValue;
263 }; 263 };
264 264
265 } 265 }
266 266
267 #endif 267 #endif
OLDNEW
« no previous file with comments | « src/sksl/SkSLParser.cpp ('k') | src/sksl/SkSLSPIRVCodeGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698