aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLGLSLTest.cpp
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-11-27 13:12:30 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-27 18:39:26 +0000
commit39204fd5dd289864973d151fc08d6f7985cecbf8 (patch)
treefc8b17451acac4135b149ecc697a98f9d678a96d /tests/SkSLGLSLTest.cpp
parenta475afd840fde33183dd3d0c91eb71d371435ceb (diff)
added SkSL support for all blend mode layouts
Bug: skia: Change-Id: Id39c068b15d0ae51520dc2169cdbf21402a43f69 Reviewed-on: https://skia-review.googlesource.com/76200 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/SkSLGLSLTest.cpp')
-rw-r--r--tests/SkSLGLSLTest.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/SkSLGLSLTest.cpp b/tests/SkSLGLSLTest.cpp
index 29b3129230..a40b72c2e8 100644
--- a/tests/SkSLGLSLTest.cpp
+++ b/tests/SkSLGLSLTest.cpp
@@ -408,11 +408,43 @@ DEF_TEST(SkSLNegatedAtan, r) {
DEF_TEST(SkSLModifiersDeclaration, r) {
test(r,
"layout(blend_support_all_equations) out;"
+ "layout(blend_support_all_equations) out;"
+ "layout(blend_support_multiply) out;"
+ "layout(blend_support_screen) out;"
+ "layout(blend_support_overlay) out;"
+ "layout(blend_support_darken) out;"
+ "layout(blend_support_lighten) out;"
+ "layout(blend_support_colordodge) out;"
+ "layout(blend_support_colorburn) out;"
+ "layout(blend_support_hardlight) out;"
+ "layout(blend_support_softlight) out;"
+ "layout(blend_support_difference) out;"
+ "layout(blend_support_exclusion) out;"
+ "layout(blend_support_hsl_hue) out;"
+ "layout(blend_support_hsl_saturation) out;"
+ "layout(blend_support_hsl_color) out;"
+ "layout(blend_support_hsl_luminosity) out;"
"void main() { }",
*SkSL::ShaderCapsFactory::Default(),
"#version 400\n"
"out vec4 sk_FragColor;\n"
"layout (blend_support_all_equations) out ;\n"
+ "layout (blend_support_all_equations) out ;\n"
+ "layout (blend_support_multiply) out ;\n"
+ "layout (blend_support_screen) out ;\n"
+ "layout (blend_support_overlay) out ;\n"
+ "layout (blend_support_darken) out ;\n"
+ "layout (blend_support_lighten) out ;\n"
+ "layout (blend_support_colordodge) out ;\n"
+ "layout (blend_support_colorburn) out ;\n"
+ "layout (blend_support_hardlight) out ;\n"
+ "layout (blend_support_softlight) out ;\n"
+ "layout (blend_support_difference) out ;\n"
+ "layout (blend_support_exclusion) out ;\n"
+ "layout (blend_support_hsl_hue) out ;\n"
+ "layout (blend_support_hsl_saturation) out ;\n"
+ "layout (blend_support_hsl_color) out ;\n"
+ "layout (blend_support_hsl_luminosity) out ;\n"
"void main() {\n"
"}\n");
}