-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to print a list of sprite #85
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -970,58 +970,74 @@ typedef union { | |
u16 y; | ||
u32 z; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_xyz_t; | ||
} __attribute__((packed)) gs_xyz_t; | ||
|
||
typedef union { | ||
u64 rgbaq; | ||
u32 rgba; | ||
struct { | ||
u8 r; | ||
u8 g; | ||
u8 b; | ||
u8 a; | ||
}; | ||
} __attribute__((packed)) gs_rgba_t; | ||
|
||
typedef union { | ||
u64 rgbaq; | ||
struct { | ||
gs_rgba_t components; | ||
float q; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_rgbaq_t; | ||
} __attribute__((packed)) gs_rgbaq_t; | ||
|
||
typedef union { | ||
u64 st; | ||
struct { | ||
float s; | ||
float t; | ||
}; | ||
} __attribute__((packed, aligned(8))) gs_stq_t; | ||
} __attribute__((packed)) gs_stq_t; | ||
|
||
typedef union { | ||
u128 xyz2; | ||
struct { | ||
gs_xyz_t xyz; | ||
u64 tag; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_xyz2; | ||
} __attribute__((packed)) gs_xyz2; | ||
|
||
typedef union { | ||
u128 rgbaq; | ||
struct { | ||
gs_rgbaq_t color; | ||
u64 tag; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_rgbaq; | ||
} __attribute__((packed)) gs_rgbaq; | ||
|
||
typedef union { | ||
u64 uv; | ||
struct { | ||
u16 u; | ||
u16 v; | ||
u32 notused; | ||
}; | ||
} __attribute__((packed)) gs_uv_t; | ||
|
||
typedef union { | ||
u128 uv; | ||
struct { | ||
u64 coord; | ||
gs_uv_t coord; | ||
u64 tag; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_uv; | ||
} __attribute__((packed)) gs_uv; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It had wrong alignment it should be 16 instead, but let the compiler to take it based on |
||
|
||
typedef union { | ||
u128 stq; | ||
struct { | ||
gs_stq_t st; | ||
u64 tag; | ||
}; | ||
} __attribute__((packed, aligned(8))) gs_stq; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It had wrong alignment it should be 16 instead, but let the compiler to take it based on |
||
} __attribute__((packed)) gs_stq; | ||
|
||
/// gsKit Point Primitive Structure | ||
/// This structure holds all relevant data for any | ||
|
@@ -1041,6 +1057,13 @@ struct gsPrimUVPoint | |
}; | ||
typedef struct gsPrimUVPoint GSPRIMUVPOINT; | ||
|
||
struct gsPrimUVPointFlat | ||
{ | ||
gs_uv uv; | ||
gs_xyz2 xyz2; | ||
}; | ||
typedef struct gsPrimUVPointFlat GSPRIMUVPOINTFLAT; | ||
|
||
struct gsPrimSTQPoint | ||
{ | ||
gs_rgbaq rgbaq; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had wrong alignment it should be 16 instead, but let the compiler to take it based on
u128