vector_float1_precision.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /// @ref ext_vector_float1_precision
  2. /// @file glm/ext/vector_float1_precision.hpp
  3. ///
  4. /// @defgroup ext_vector_float1_precision GLM_EXT_vector_float1_precision
  5. /// @ingroup ext
  6. ///
  7. /// Exposes highp_vec1, mediump_vec1 and lowp_vec1 types.
  8. ///
  9. /// Include <glm/ext/vector_float1_precision.hpp> to use the features of this extension.
  10. ///
  11. /// @see ext_vector_float1 extension.
  12. #pragma once
  13. #include "../detail/type_vec1.hpp"
  14. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  15. # pragma message("GLM: GLM_EXT_vector_float1_precision extension included")
  16. #endif
  17. namespace glm
  18. {
  19. /// @addtogroup ext_vector_float1_precision
  20. /// @{
  21. /// 1 component vector of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
  22. typedef vec<1, float, highp> highp_vec1;
  23. /// 1 component vector of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
  24. typedef vec<1, float, mediump> mediump_vec1;
  25. /// 1 component vector of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
  26. typedef vec<1, float, lowp> lowp_vec1;
  27. /// @}
  28. }//namespace glm