| 22 | namespace compute = boost::compute; |
| 23 | |
| 24 | BOOST_AUTO_TEST_CASE(get_context) |
| 25 | { |
| 26 | if(!supports_image_samplers(device)){ |
| 27 | std::cerr << "skipping get_context test" << std::endl; |
| 28 | return; |
| 29 | } |
| 30 | |
| 31 | compute::image_sampler sampler(context, true, CL_ADDRESS_NONE, CL_FILTER_NEAREST); |
| 32 | BOOST_CHECK(sampler.get_context() == context); |
| 33 | } |
| 34 | |
| 35 | BOOST_AUTO_TEST_CASE(get_info) |
| 36 | { |
nothing calls this directly
no test coverage detected