aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLSPIRVCodeGenerator.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-01-13 16:40:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-17 15:22:06 +0000
commitfd146aa1dd8ea2d83396bb3a19c7556d9297a5e0 (patch)
treeee58419e34142c9ab6d5292a90d7450be401891b /src/sksl/SkSLSPIRVCodeGenerator.h
parent6d4d6cce5e6e73d14c5d39c20321b189d737dfd5 (diff)
do/while loops in SPIR-V no longer cause an assertion failure
BUG=skia: Change-Id: Ic5f590879d8ada5d4580b5c6e9091ccc9532be4b Reviewed-on: https://skia-review.googlesource.com/6605 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLSPIRVCodeGenerator.h')
-rw-r--r--src/sksl/SkSLSPIRVCodeGenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.h b/src/sksl/SkSLSPIRVCodeGenerator.h
index 96ff187983..562bf279e9 100644
--- a/src/sksl/SkSLSPIRVCodeGenerator.h
+++ b/src/sksl/SkSLSPIRVCodeGenerator.h
@@ -18,6 +18,7 @@
#include "ir/SkSLBinaryExpression.h"
#include "ir/SkSLBoolLiteral.h"
#include "ir/SkSLConstructor.h"
+#include "ir/SkSLDoStatement.h"
#include "ir/SkSLFloatLiteral.h"
#include "ir/SkSLIfStatement.h"
#include "ir/SkSLIndexExpression.h"
@@ -38,6 +39,7 @@
#include "ir/SkSLVarDeclarations.h"
#include "ir/SkSLVarDeclarationsStatement.h"
#include "ir/SkSLVariableReference.h"
+#include "ir/SkSLWhileStatement.h"
#include "spirv.h"
namespace SkSL {
@@ -191,6 +193,10 @@ private:
void writeForStatement(const ForStatement& f, SkWStream& out);
+ void writeWhileStatement(const WhileStatement& w, SkWStream& out);
+
+ void writeDoStatement(const DoStatement& d, SkWStream& out);
+
void writeReturnStatement(const ReturnStatement& r, SkWStream& out);
void writeCapabilities(SkWStream& out);