aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLUtil.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-06-12 12:05:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-15 18:06:58 +0000
commitd5d323f45777c4766ddf4c74eedff36ee5d9bc56 (patch)
treeb4af72c66c5265314b19113515e79931de627b26 /src/sksl/SkSLUtil.h
parenteee3c09e96d0a925e1ecaec118cc3ac0294e86ea (diff)
implemented mustImplementGSInvocationsWithLoop workaround in sksl
Bug: skia: Change-Id: I8434be89537a8baf9e9c5c7a643d28c03108f4ea Reviewed-on: https://skia-review.googlesource.com/18154 Reviewed-by: Chris Dalton <csmartdalton@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLUtil.h')
-rw-r--r--src/sksl/SkSLUtil.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sksl/SkSLUtil.h b/src/sksl/SkSLUtil.h
index d1af9bb3c7..b56ae16d2c 100644
--- a/src/sksl/SkSLUtil.h
+++ b/src/sksl/SkSLUtil.h
@@ -150,6 +150,10 @@ public:
const char* versionDeclString() const {
return "";
}
+
+ bool mustImplementGSInvocationsWithLoop() const {
+ return false;
+ }
};
extern StandaloneShaderCaps standaloneCaps;
@@ -224,6 +228,13 @@ public:
return result;
}
+ static sk_sp<GrShaderCaps> MustImplementGSInvocationsWithLoop() {
+ sk_sp<GrShaderCaps> result = sk_make_sp<GrShaderCaps>(GrContextOptions());
+ result->fVersionDeclString = "#version 400";
+ result->fMustImplementGSInvocationsWithLoop = true;
+ return result;
+ }
+
static sk_sp<GrShaderCaps> VariousCaps() {
sk_sp<GrShaderCaps> result = sk_make_sp<GrShaderCaps>(GrContextOptions());
result->fVersionDeclString = "#version 400";