diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-11-13 16:13:21 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-13 21:32:03 +0000 |
commit | e92b1b16f79b215271b1964d000004d066850f49 (patch) | |
tree | 32bd8009d24e5191e006d23d4b94c1703f36b4c2 /src/sksl/SkSLSPIRVCodeGenerator.h | |
parent | 3ae1a307f61ea15cfd0fafded64a4405deba0dba (diff) |
SPIR-V switch statement support
Bug: skia:
Change-Id: I0e44b103820745614c29ff08ab100d46abd3a0de
Reviewed-on: https://skia-review.googlesource.com/70960
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLSPIRVCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLSPIRVCodeGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.h b/src/sksl/SkSLSPIRVCodeGenerator.h index 368e6fb287..63d5a4067a 100644 --- a/src/sksl/SkSLSPIRVCodeGenerator.h +++ b/src/sksl/SkSLSPIRVCodeGenerator.h @@ -33,6 +33,7 @@ #include "ir/SkSLProgramElement.h" #include "ir/SkSLReturnStatement.h" #include "ir/SkSLStatement.h" +#include "ir/SkSLSwitchStatement.h" #include "ir/SkSLSwizzle.h" #include "ir/SkSLTernaryExpression.h" #include "ir/SkSLVarDeclarations.h" @@ -233,6 +234,8 @@ private: void writeDoStatement(const DoStatement& d, OutputStream& out); + void writeSwitchStatement(const SwitchStatement& s, OutputStream& out); + void writeReturnStatement(const ReturnStatement& r, OutputStream& out); void writeCapabilities(OutputStream& out); |