aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-05-01 16:57:07 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-02 17:39:45 +0000
commit0dd30d99282c48cb3b5d50939a4b200ace6b8c71 (patch)
treeb5fcdb705afed9212e6c5e4a7a575e7c64b19af7 /src/sksl/ir
parent4c9155bd66d86de48069192f4b73bc292cfec135 (diff)
sksl support for buffer blocks
Bug: skia: Change-Id: Ic2cabaf2c7fb23cec7863f2b6152bbed133e0886 Reviewed-on: https://skia-review.googlesource.com/14947 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/ir')
-rw-r--r--src/sksl/ir/SkSLModifiers.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sksl/ir/SkSLModifiers.h b/src/sksl/ir/SkSLModifiers.h
index 8aaf2ae7c5..80ef5d7ab2 100644
--- a/src/sksl/ir/SkSLModifiers.h
+++ b/src/sksl/ir/SkSLModifiers.h
@@ -32,7 +32,8 @@ struct Modifiers {
kCoherent_Flag = 1 << 11,
kVolatile_Flag = 1 << 12,
kRestrict_Flag = 1 << 13,
- kHasSideEffects_Flag = 1 << 14
+ kBuffer_Flag = 1 << 14,
+ kHasSideEffects_Flag = 1 << 15
};
Modifiers()
@@ -81,6 +82,9 @@ struct Modifiers {
if (fFlags & kRestrict_Flag) {
result += "restrict ";
}
+ if (fFlags & kBuffer_Flag) {
+ result += "buffer ";
+ }
if (fFlags & kHasSideEffects_Flag) {
result += "sk_has_side_effects ";
}