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

Method enqueue_fill_image

include/boost/compute/command_queue.hpp:1274–1300  ·  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

1272 ///
1273 /// \opencl_version_warning{1,2}
1274 event enqueue_fill_image(image_object& image,
1275 const void *fill_color,
1276 const size_t *origin,
1277 const size_t *region,
1278 const wait_list &events = wait_list())
1279 {
1280 BOOST_ASSERT(m_queue != 0);
1281
1282 event event_;
1283
1284 cl_int ret = clEnqueueFillImage(
1285 m_queue,
1286 image.get(),
1287 fill_color,
1288 origin,
1289 region,
1290 events.size(),
1291 events.get_event_ptr(),
1292 &event_.get()
1293 );
1294
1295 if(ret != CL_SUCCESS){
1296 BOOST_THROW_EXCEPTION(opencl_error(ret));
1297 }
1298
1299 return event_;
1300 }
1301
1302 /// \overload
1303 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