-
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
Conversation
|
||
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 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
|
||
typedef union { | ||
u128 uv; | ||
struct { | ||
u64 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 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
|
||
typedef union { | ||
u128 rgbaq; | ||
struct { | ||
gs_rgbaq_t color; | ||
u64 tag; | ||
}; | ||
} __attribute__((packed,aligned(8))) gs_rgbaq; | ||
} __attribute__((packed)) gs_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
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.
Lgtm
d62f47a
to
9dbd3b0
Compare
Description
This PR does:
gsKit_prim_list_sprite_gouraud_3d
for allowing to draw a list of spritesgsKit_clear
for usinggsKit_prim_list_sprite_gouraud_3d
better.Cheers