This commit is contained in:
Christophe 2024-01-18 19:11:45 +01:00
parent 4bb65eb075
commit 68224bcc00

View file

@ -67,11 +67,21 @@ struct my_ivec4_packed
GLM_STATIC_ASSERT(sizeof(my_ivec4_packed) == sizeof(glm::uint32) + sizeof(glm::ivec4), "glm::ivec4 packed is not correct");
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpadded"
#endif
struct my_ivec4_aligned
{
glm::uint32 a;
glm::aligned_ivec4 b;
};
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
GLM_STATIC_ASSERT(sizeof(my_ivec4_aligned) == sizeof(glm::aligned_ivec4) * 2, "glm::ivec4 aligned is not correct");
struct my_u8vec4_packed