SkRuntimeEffect: Handle different main() signatures on CPU

Bug: skia:10603
Change-Id: Ib4d2b36c09c30a9a112f5a2d2d7060c09009671b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309782
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/gm/runtimeshader.cpp b/gm/runtimeshader.cpp
index 8ca35d5..0a9f77d 100644
--- a/gm/runtimeshader.cpp
+++ b/gm/runtimeshader.cpp
@@ -299,9 +299,11 @@
 
 class DefaultColorRT : public RuntimeShaderGM {
 public:
+    // This test also *explicitly* doesn't include coords in main's parameter list, to test that
+    // runtime shaders work without them being declared (when they're not used).
     DefaultColorRT() : RuntimeShaderGM("default_color_rt", {512, 256}, R"(
         in shader input;
-        void main(float2 xy, inout half4 color) {
+        void main(inout half4 color) {
             color = sample(input);
         }
     )") {}