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>
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.h b/src/sksl/SkSLSPIRVCodeGenerator.h
index 96ff187..562bf27 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 @@
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);