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

Method Image2DArray

include/CL/opencl.hpp:5064–5098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5062{
5063public:
5064 Image2DArray(
5065 const Context& context,
5066 cl_mem_flags flags,
5067 ImageFormat format,
5068 size_type arraySize,
5069 size_type width,
5070 size_type height,
5071 size_type rowPitch,
5072 size_type slicePitch,
5073 void* host_ptr = nullptr,
5074 cl_int* err = nullptr)
5075 {
5076 cl_int error;
5077
5078 cl_image_desc desc = {};
5079 desc.image_type = CL_MEM_OBJECT_IMAGE2D_ARRAY;
5080 desc.image_width = width;
5081 desc.image_height = height;
5082 desc.image_array_size = arraySize;
5083 desc.image_row_pitch = rowPitch;
5084 desc.image_slice_pitch = slicePitch;
5085
5086 object_ = ::clCreateImage(
5087 context(),
5088 flags,
5089 &format,
5090 &desc,
5091 host_ptr,
5092 &error);
5093
5094 detail::errHandler(error, __CREATE_IMAGE_ERR);
5095 if (err != nullptr) {
5096 *err = error;
5097 }
5098 }
5099
5100 Image2DArray() { }
5101

Callers

nothing calls this directly

Calls 2

clCreateImageFunction · 0.85
errHandlerFunction · 0.85

Tested by

no test coverage detected