testparse.c
branchtrunk
changeset 148 645003ec6623
parent 142 e064b4cefb4e
child 192 e7c864575d1c
--- a/testparse.c	Sat Apr 19 02:29:41 2008 -0400
+++ b/testparse.c	Sat Apr 19 03:58:57 2008 -0400
@@ -95,6 +95,21 @@
             } // for
         } // else
 
+        printf("SAMPLERS:");
+        if (pd->sampler_count == 0)
+            printf(" (none.)\n");
+        else
+        {
+            int i;
+            printf("\n");
+            for (i = 0; i < pd->sampler_count; i++)
+            {
+                static const char *typenames[] = { "2d", "cube", "volume" };
+                const MOJOSHADER_sampler *s = &pd->samplers[i];
+                printf("    * %d: %s\n", s->index, typenames[(int) s->type]);
+            } // for
+        } // else
+
         if (pd->output != NULL)
         {
             int i;