OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |