• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #define BOOST_TEST_MODULE TestImage3D
12 #include <boost/test/unit_test.hpp>
13 
14 #include <boost/compute/system.hpp>
15 #include <boost/compute/image/image3d.hpp>
16 
17 #include "context_setup.hpp"
18 
19 namespace compute = boost::compute;
20 
BOOST_AUTO_TEST_CASE(image3d_get_supported_formats)21 BOOST_AUTO_TEST_CASE(image3d_get_supported_formats)
22 {
23     const std::vector<compute::image_format> formats =
24         compute::image3d::get_supported_formats(context);
25 }
26 
27 // check type_name() for image3d
BOOST_AUTO_TEST_CASE(image3d_type_name)28 BOOST_AUTO_TEST_CASE(image3d_type_name)
29 {
30     BOOST_CHECK(
31         std::strcmp(
32             boost::compute::type_name<boost::compute::image3d>(), "image3d_t"
33         ) == 0
34     );
35 }
36 
37 BOOST_AUTO_TEST_SUITE_END()
38