remove alignas for twn_types.h, it looks to be just as performant and even more in cases i looked at
This commit is contained in:
parent
119b706638
commit
7f56ed8421
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
/* a point in some space (integer) */
|
/* a point in some space (integer) */
|
||||||
typedef struct Vec2i {
|
typedef struct Vec2i {
|
||||||
_Alignas(8)
|
|
||||||
int32_t x;
|
int32_t x;
|
||||||
int32_t y;
|
int32_t y;
|
||||||
} Vec2i;
|
} Vec2i;
|
||||||
@ -16,7 +15,6 @@ _Alignas(8)
|
|||||||
|
|
||||||
/* a point in some space (floating point) */
|
/* a point in some space (floating point) */
|
||||||
typedef struct Vec2 {
|
typedef struct Vec2 {
|
||||||
_Alignas(8)
|
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
} Vec2;
|
} Vec2;
|
||||||
@ -25,7 +23,6 @@ _Alignas(8)
|
|||||||
/* a point in some three dimension space (floating point) */
|
/* a point in some three dimension space (floating point) */
|
||||||
/* y goes up, x goes to the right */
|
/* y goes up, x goes to the right */
|
||||||
typedef struct Vec3 {
|
typedef struct Vec3 {
|
||||||
_Alignas(16)
|
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
float z;
|
float z;
|
||||||
@ -35,7 +32,6 @@ _Alignas(16)
|
|||||||
/* a point in some three dimension space (floating point) */
|
/* a point in some three dimension space (floating point) */
|
||||||
/* y goes up, x goes to the right */
|
/* y goes up, x goes to the right */
|
||||||
typedef struct Vec4 {
|
typedef struct Vec4 {
|
||||||
_Alignas(16)
|
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
float z;
|
float z;
|
||||||
@ -45,7 +41,6 @@ _Alignas(16)
|
|||||||
|
|
||||||
/* 32-bit color data */
|
/* 32-bit color data */
|
||||||
typedef struct Color {
|
typedef struct Color {
|
||||||
_Alignas(4)
|
|
||||||
uint8_t r;
|
uint8_t r;
|
||||||
uint8_t g;
|
uint8_t g;
|
||||||
uint8_t b;
|
uint8_t b;
|
||||||
@ -55,7 +50,6 @@ _Alignas(4)
|
|||||||
|
|
||||||
/* a rectangle with the origin at the upper left (integer) */
|
/* a rectangle with the origin at the upper left (integer) */
|
||||||
typedef struct Recti {
|
typedef struct Recti {
|
||||||
_Alignas(16)
|
|
||||||
int32_t x;
|
int32_t x;
|
||||||
int32_t y;
|
int32_t y;
|
||||||
int32_t w;
|
int32_t w;
|
||||||
@ -65,7 +59,6 @@ _Alignas(16)
|
|||||||
|
|
||||||
/* a rectangle with the origin at the upper left (floating point) */
|
/* a rectangle with the origin at the upper left (floating point) */
|
||||||
typedef struct Rect {
|
typedef struct Rect {
|
||||||
_Alignas(16)
|
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
float w;
|
float w;
|
||||||
|
Loading…
Reference in New Issue
Block a user