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

Method enqueue_fill_image

include/boost/compute/command_queue.hpp:1319–1345  ·  view source on GitHub ↗

Enqueues a command to fill \p image with \p fill_color. \see_opencl_ref{clEnqueueFillImage} \opencl_version_warning{1,2}

Source from the content-addressed store, hash-verified

1317 ///
1318 /// \opencl_version_warning{1,2}
1319 event enqueue_fill_image(image_object& image,
1320 const void *fill_color,
1321 const size_t *origin,
1322 const size_t *region,
1323 const wait_list &events = wait_list())
1324 {
1325 BOOST_ASSERT(m_queue != 0);
1326
1327 event event_;
1328
1329 cl_int ret = clEnqueueFillImage(
1330 m_queue,
1331 image.get(),
1332 fill_color,
1333 origin,
1334 region,
1335 events.size(),
1336 events.get_event_ptr(),
1337 &event_.get()
1338 );
1339
1340 if(ret != CL_SUCCESS){
1341 BOOST_THROW_EXCEPTION(opencl_error(ret));
1342 }
1343
1344 return event_;
1345 }
1346
1347 /// \overload
1348 template<size_t N>

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 8

get_contextMethod · 0.95
wait_listClass · 0.85
opencl_errorClass · 0.85
copyFunction · 0.85
get_event_ptrMethod · 0.80
dataMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64