MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / enqueueFillImage

Method enqueueFillImage

include/internal/CL/cl.hpp:6003–6028  ·  view source on GitHub ↗

* Enqueue a command to fill an image object with a specified color. * \param fillColor is the color to use to fill the image. * This is a four component RGBA floating-point color value if * the image channel data type is not an unnormalized signed or * unsigned data type. */

Source from the content-addressed store, hash-verified

6001 * unsigned data type.
6002 */
6003 cl_int enqueueFillImage(
6004 const Image& image,
6005 cl_float4 fillColor,
6006 const size_t<3>& origin,
6007 const size_t<3>& region,
6008 const VECTOR_CLASS<Event>* events = NULL,
6009 Event* event = NULL) const
6010 {
6011 cl_event tmp;
6012 cl_int err = detail::errHandler(
6013 ::clEnqueueFillImage(
6014 object_,
6015 image(),
6016 static_cast<void*>(&fillColor),
6017 (const ::size_t *) origin,
6018 (const ::size_t *) region,
6019 (events != NULL) ? (cl_uint) events->size() : 0,
6020 (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL,
6021 (event != NULL) ? &tmp : NULL),
6022 __ENQUEUE_FILL_IMAGE_ERR);
6023
6024 if (event != NULL && err == CL_SUCCESS)
6025 *event = tmp;
6026
6027 return err;
6028 }
6029
6030 /**
6031 * Enqueue a command to fill an image object with a specified color.

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected