mojoshader.c
changeset 468 28f28973ee80
parent 466 c2aa844013f1
child 469 b8cfaae6c4af
--- a/mojoshader.c	Sat Dec 06 19:15:21 2008 -0500
+++ b/mojoshader.c	Sat Dec 06 21:19:29 2008 -0500
@@ -130,6 +130,23 @@
     struct RegisterList *next;
 } RegisterList;
 
+typedef struct
+{
+    const uint32 *token;   // this is the unmolested token in the stream.
+    int regnum;
+    int swizzle;  // xyzw (all four, not split out).
+    int swizzle_x;
+    int swizzle_y;
+    int swizzle_z;
+    int swizzle_w;
+    SourceMod src_mod;
+    RegisterType regtype;
+    int relative;
+    RegisterType relative_regtype;
+    int relative_regnum;
+    int relative_component;
+    const VariableList *relative_array;
+} SourceArgInfo;
 
 #define SCRATCH_BUFFER_SIZE 128
 #define SCRATCH_BUFFERS 32