| 194 | } |
| 195 | |
| 196 | cl_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 | |
| 206 | template <cl_mem_object_type IMG_TYPE, typename T> |
| 207 | static int test_readimage(cl_device_id device, cl_context context, |
no test coverage detected