Add a few more SkRuntimeEffect unit tests

Validating that only certain types are allowed as in or uniform.

Change-Id: I941da448bffec06158e67fbf653833846d9fe3db
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/262222
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/tests/SkRuntimeEffectTest.cpp b/tests/SkRuntimeEffectTest.cpp
index ad2fa7a..45ba89a 100644
--- a/tests/SkRuntimeEffectTest.cpp
+++ b/tests/SkRuntimeEffectTest.cpp
@@ -31,4 +31,14 @@
 
     // 'in' variables can't be arrays
     test("in int Input[2];", "array");
+
+    // Type specific restrictions:
+
+    // 'bool', 'int' can't be 'uniform'
+    test("uniform bool Input;", "'uniform'");
+    test("uniform int Input;", "'uniform'");
+
+    // vector and matrix types can't be 'in'
+    test("in float2 Input;", "'in'");
+    test("in half3x3 Input;", "'in'");
 }