test_interop_opengl.cpp 875 B

12345678910111213141516171819202122232425262728
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #define BOOST_TEST_MODULE TestInteropOpenGL
  11. #include <boost/test/unit_test.hpp>
  12. #include <boost/compute/interop/opengl.hpp>
  13. BOOST_AUTO_TEST_CASE(opengl_buffer)
  14. {
  15. }
  16. BOOST_AUTO_TEST_CASE(type_name)
  17. {
  18. BOOST_CHECK_EQUAL(
  19. boost::compute::type_name<boost::compute::opengl_texture>(), "image2d_t"
  20. );
  21. BOOST_CHECK_EQUAL(
  22. boost::compute::type_name<boost::compute::opengl_renderbuffer>(), "image2d_t"
  23. );
  24. }