MCPcopy Create free account
hub / github.com/boostorg/compute / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/test_image_sampler.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace compute = boost::compute;
23
24BOOST_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
35BOOST_AUTO_TEST_CASE(get_info)
36{

Callers

nothing calls this directly

Calls 3

supports_image_samplersFunction · 0.85
image_samplerClass · 0.85
get_contextMethod · 0.45

Tested by

no test coverage detected