gtx_texture.cpp 307 B

1234567891011121314151617181920212223
  1. #include <glm/vec2.hpp>
  2. #define GLM_ENABLE_EXPERIMENTAL
  3. #include <glm/gtx/texture.hpp>
  4. static 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. }