mojoshader.c
changeset 468 28f28973ee80
parent 466 c2aa844013f1
child 469 b8cfaae6c4af
equal deleted inserted replaced
467:577a9d07b6bf 468:28f28973ee80
   128     int misc;
   128     int misc;
   129     const VariableList *array;
   129     const VariableList *array;
   130     struct RegisterList *next;
   130     struct RegisterList *next;
   131 } RegisterList;
   131 } RegisterList;
   132 
   132 
       
   133 typedef struct
       
   134 {
       
   135     const uint32 *token;   // this is the unmolested token in the stream.
       
   136     int regnum;
       
   137     int swizzle;  // xyzw (all four, not split out).
       
   138     int swizzle_x;
       
   139     int swizzle_y;
       
   140     int swizzle_z;
       
   141     int swizzle_w;
       
   142     SourceMod src_mod;
       
   143     RegisterType regtype;
       
   144     int relative;
       
   145     RegisterType relative_regtype;
       
   146     int relative_regnum;
       
   147     int relative_component;
       
   148     const VariableList *relative_array;
       
   149 } SourceArgInfo;
   133 
   150 
   134 #define SCRATCH_BUFFER_SIZE 128
   151 #define SCRATCH_BUFFER_SIZE 128
   135 #define SCRATCH_BUFFERS 32
   152 #define SCRATCH_BUFFERS 32
   136 
   153 
   137 // !!! FIXME: the scratch buffers make Context pretty big.
   154 // !!! FIXME: the scratch buffers make Context pretty big.