Skip to content

Commit

Permalink
Moved SourceArgInfo back to mojoshader.c for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 7, 2008
1 parent f73a96e commit 17b42c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions mojoshader.c
Expand Up @@ -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
Expand Down
17 changes: 0 additions & 17 deletions mojoshader_internal.h
Expand Up @@ -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)
{
Expand Down

0 comments on commit 17b42c6

Please sign in to comment.