1#include <clc/clc.h>
2
3_CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2);
4
5_CLC_OVERLOAD _CLC_DEF float4 read_imagef(image2d_t image, sampler_t sampler,
6                                          int2 coord) {
7  float2 coord_float = (float2)(coord.x, coord.y);
8  return __clc_read_imagef_tex(image, sampler, coord_float);
9}
10
11_CLC_OVERLOAD _CLC_DEF float4 read_imagef(image2d_t image, sampler_t sampler,
12                                          float2 coord) {
13  return __clc_read_imagef_tex(image, sampler, coord);
14}
15