MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / create_image_xd

Function create_image_xd

test_conformance/basic/test_readimage.cpp:196–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196cl_mem create_image_xd(cl_context context, cl_mem_flags flags,
197 cl_mem_object_type type, const cl_image_format *fmt,
198 size_t x, size_t y, size_t z, cl_int *err)
199{
200
201 return (CL_MEM_OBJECT_IMAGE2D == type)
202 ? create_image_2d(context, flags, fmt, x, y, 0, nullptr, err)
203 : create_image_3d(context, flags, fmt, x, y, z, 0, 0, nullptr, err);
204}
205
206template <cl_mem_object_type IMG_TYPE, typename T>
207static int test_readimage(cl_device_id device, cl_context context,

Callers 1

test_readimageFunction · 0.85

Calls 2

create_image_2dFunction · 0.85
create_image_3dFunction · 0.85

Tested by

no test coverage detected