gtx_texture.cpp 299 B

12345678910111213141516171819202122
  1. #define GLM_ENABLE_EXPERIMENTAL
  2. #include <glm/vec2.hpp>
  3. #include <glm/gtx/texture.hpp>
  4. int test_levels()
  5. {
  6. int Error = 0;
  7. int const Levels = glm::levels(glm::ivec2(3, 2));
  8. Error += Levels == 2 ? 0 : 1;
  9. return Error;
  10. }
  11. int main()
  12. {
  13. int Error = 0;
  14. Error += test_levels();
  15. return Error;
  16. }