test_image3d.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013-2015 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 TestImage3D
  11. #include <boost/test/unit_test.hpp>
  12. #include <boost/compute/system.hpp>
  13. #include <boost/compute/image/image3d.hpp>
  14. #include "context_setup.hpp"
  15. namespace compute = boost::compute;
  16. BOOST_AUTO_TEST_CASE(image3d_get_supported_formats)
  17. {
  18. const std::vector<compute::image_format> formats =
  19. compute::image3d::get_supported_formats(context);
  20. }
  21. // check type_name() for image3d
  22. BOOST_AUTO_TEST_CASE(image3d_type_name)
  23. {
  24. BOOST_CHECK(
  25. std::strcmp(
  26. boost::compute::type_name<boost::compute::image3d>(), "image3d_t"
  27. ) == 0
  28. );
  29. }
  30. BOOST_AUTO_TEST_SUITE_END()