mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 04:44:58 +00:00
align vec4/mat4 to 16 in typedef
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
# define CGLM_INLINE __forceinline
|
||||
# define CGLM_ALIGN(X) __declspec(align(X))
|
||||
#else
|
||||
# define CGLM_INLINE static inline __attribute((always_inline))
|
||||
# define CGLM_ALIGN(X) __attribute((aligned(X)))
|
||||
#endif
|
||||
|
||||
#define glm__memcpy(type, dest, src, size) \
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "cglm-common.h"
|
||||
|
||||
typedef float vec3[3];
|
||||
typedef float vec4[4];
|
||||
typedef CGLM_ALIGN(16) float vec4[4];
|
||||
|
||||
typedef vec3 mat3[3];
|
||||
typedef vec4 mat4[4];
|
||||
|
||||
Reference in New Issue
Block a user