| 1 | |
| 2 | |
| 3 | |
| 4 | #pragma once |
| 5 | #include "../detail/type_vec4.hpp" |
| 6 | |
| 7 | namespace glm |
| 8 | { |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | typedef vec<4, float, highp> highp_vec4; |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | typedef vec<4, float, mediump> mediump_vec4; |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | typedef vec<4, float, lowp> lowp_vec4; |
| 29 | |
| 30 | |
| 31 | } |
| 32 | |
| 33 | #if GLM_CONFIG_CTOR_INIT == GLM_DISABLE |
| 34 | static_assert(std::is_trivially_default_constructible<glm::highp_vec4>::value); |
| 35 | static_assert(std::is_trivially_default_constructible<glm::mediump_vec4>::value); |
| 36 | static_assert(std::is_trivially_default_constructible<glm::lowp_vec4>::value); |
| 37 | #endif |
| 38 | static_assert(std::is_trivially_copy_assignable<glm::highp_vec4>::value); |
| 39 | static_assert(std::is_trivially_copy_assignable<glm::mediump_vec4>::value); |
| 40 | static_assert(std::is_trivially_copy_assignable<glm::lowp_vec4>::value); |
| 41 | static_assert(std::is_trivially_copyable<glm::highp_vec4>::value); |
| 42 | static_assert(std::is_trivially_copyable<glm::mediump_vec4>::value); |
| 43 | static_assert(std::is_trivially_copyable<glm::lowp_vec4>::value); |
| 44 | static_assert(std::is_copy_constructible<glm::highp_vec4>::value); |
| 45 | static_assert(std::is_copy_constructible<glm::mediump_vec4>::value); |
| 46 | static_assert(std::is_copy_constructible<glm::lowp_vec4>::value); |
| 47 | static_assert(glm::highp_vec4::length() == 4); |
| 48 | static_assert(glm::mediump_vec4::length() == 4); |
| 49 | static_assert(glm::lowp_vec4::length() == 4); |
| 50 | static_assert(sizeof(glm::highp_vec4) == sizeof(glm::mediump_vec4)); |
| 51 | static_assert(sizeof(glm::highp_vec4) == sizeof(glm::lowp_vec4)); |