Skip to content
Permalink
Browse files
Moved SourceArgInfo back to mojoshader.c for now.
  • Loading branch information
icculus committed Dec 7, 2008
1 parent f73a96e commit 17b42c6ef36071b81a08069e1f009900a8870870
Showing with 17 additions and 17 deletions.
  1. +17 −0 mojoshader.c
  2. +0 −17 mojoshader_internal.h
@@ -130,6 +130,23 @@ typedef struct RegisterList
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
@@ -226,23 +226,6 @@ typedef struct
RegisterType regtype;
} DestArgInfo;

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;

static inline int scalar_register(const RegisterType regtype, const int regnum)
{

0 comments on commit 17b42c6

Please sign in to comment.