aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLGLSLCodeGenerator.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2016-11-22 09:44:03 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-22 15:31:02 +0000
commit64773e6c9f61fb319f597a8d7dd7ee377d51a43a (patch)
treee8ceb0267585ec660844e85d2869d01cf2e3c855 /src/sksl/SkSLGLSLCodeGenerator.cpp
parent71fecc32b1b4f71ef3c6467b1f5e0b55c2a12428 (diff)
Add support for input attachments in SkSL spirv
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5115 Change-Id: I3e03a465a10c9aff62491d0f6e71105d1b650dab Reviewed-on: https://skia-review.googlesource.com/5115 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.cpp')
-rw-r--r--src/sksl/SkSLGLSLCodeGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp
index 553626127b..e4aec92caf 100644
--- a/src/sksl/SkSLGLSLCodeGenerator.cpp
+++ b/src/sksl/SkSLGLSLCodeGenerator.cpp
@@ -4,7 +4,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-
+
#include "SkSLGLSLCodeGenerator.h"
#include "string.h"
@@ -392,7 +392,7 @@ void GLSLCodeGenerator::writeFunction(const FunctionDefinition& f) {
this->write(SkString((const char*) data->data(), data->size()));
}
-void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers,
+void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers,
bool globalContext) {
if (modifiers.fFlags & Modifiers::kNoPerspective_Flag) {
this->write("noperspective ");
@@ -404,7 +404,7 @@ void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers,
if (layout.size()) {
this->write(layout + " ");
}
- if ((modifiers.fFlags & Modifiers::kIn_Flag) &&
+ if ((modifiers.fFlags & Modifiers::kIn_Flag) &&
(modifiers.fFlags & Modifiers::kOut_Flag)) {
this->write("inout ");
} else if (modifiers.fFlags & Modifiers::kIn_Flag) {