| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | #pragma once |
| 14 | |
| 15 | #include "../detail/type_vec1.hpp" |
| 16 | |
| 17 | #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) |
| 18 | # pragma message("GLM: GLM_EXT_vector_float1_precision extension included") |
| 19 | #endif |
| 20 | |
| 21 | namespace glm |
| 22 | { |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | typedef vec<1, float, highp> highp_vec1; |
| 28 | |
| 29 | |
| 30 | typedef vec<1, float, mediump> mediump_vec1; |
| 31 | |
| 32 | |
| 33 | typedef vec<1, float, lowp> lowp_vec1; |
| 34 | |
| 35 | |
| 36 | } |
| 37 | |
| 38 | #if GLM_CONFIG_CTOR_INIT == GLM_DISABLE |
| 39 | static_assert(std::is_trivially_default_constructible<glm::highp_vec1>::value); |
| 40 | static_assert(std::is_trivially_default_constructible<glm::mediump_vec1>::value); |
| 41 | static_assert(std::is_trivially_default_constructible<glm::lowp_vec1>::value); |
| 42 | #endif |
| 43 | static_assert(std::is_trivially_copy_assignable<glm::highp_vec1>::value); |
| 44 | static_assert(std::is_trivially_copy_assignable<glm::mediump_vec1>::value); |
| 45 | static_assert(std::is_trivially_copy_assignable<glm::lowp_vec1>::value); |
| 46 | static_assert(std::is_trivially_copyable<glm::highp_vec1>::value); |
| 47 | static_assert(std::is_trivially_copyable<glm::mediump_vec1>::value); |
| 48 | static_assert(std::is_trivially_copyable<glm::lowp_vec1>::value); |
| 49 | static_assert(std::is_copy_constructible<glm::highp_vec1>::value); |
| 50 | static_assert(std::is_copy_constructible<glm::mediump_vec1>::value); |
| 51 | static_assert(std::is_copy_constructible<glm::lowp_vec1>::value); |
| 52 | static_assert(glm::highp_vec1::length() == 1); |
| 53 | static_assert(glm::mediump_vec1::length() == 1); |
| 54 | static_assert(glm::lowp_vec1::length() == 1); |
| 55 | static_assert(sizeof(glm::highp_vec1) == sizeof(glm::mediump_vec1)); |
| 56 | static_assert(sizeof(glm::highp_vec1) == sizeof(glm::lowp_vec1)); |