From 39204fd5dd289864973d151fc08d6f7985cecbf8 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Mon, 27 Nov 2017 13:12:30 -0500 Subject: 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 Reviewed-by: Greg Daniel --- tests/SkSLGLSLTest.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tests/SkSLGLSLTest.cpp') 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"); } -- cgit v1.2.3