MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / Image1DArray

Method Image1DArray

include/CL/opencl.hpp:4722–4752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4720{
4721public:
4722 Image1DArray(
4723 const Context& context,
4724 cl_mem_flags flags,
4725 ImageFormat format,
4726 size_type arraySize,
4727 size_type width,
4728 size_type rowPitch,
4729 void* host_ptr = nullptr,
4730 cl_int* err = nullptr)
4731 {
4732 cl_int error;
4733
4734 cl_image_desc desc = {};
4735 desc.image_type = CL_MEM_OBJECT_IMAGE1D_ARRAY;
4736 desc.image_width = width;
4737 desc.image_array_size = arraySize;
4738 desc.image_row_pitch = rowPitch;
4739
4740 object_ = ::clCreateImage(
4741 context(),
4742 flags,
4743 &format,
4744 &desc,
4745 host_ptr,
4746 &error);
4747
4748 detail::errHandler(error, __CREATE_IMAGE_ERR);
4749 if (err != nullptr) {
4750 *err = error;
4751 }
4752 }
4753
4754 Image1DArray() { }
4755

Callers

nothing calls this directly

Calls 2

clCreateImageFunction · 0.85
errHandlerFunction · 0.85

Tested by

no test coverage detected