3 _CLC_DECL float4 __clc_read_imagef_tex
(image2d_t, sampler_t
, float2
);
5 int4 __clc_reinterpret_v4f_to_v4i
(float4 v
) {
13 _CLC_OVERLOAD _CLC_DEF int4 read_imagei
(image2d_t image
, sampler_t sampler
,
15 float2 coord_float
= (float2)(coord.x
, coord.y
);
16 return __clc_reinterpret_v4f_to_v4i
(
17 __clc_read_imagef_tex
(image, sampler
, coord_float
));
19 _CLC_OVERLOAD _CLC_DEF int4 read_imagei
(image2d_t image
, sampler_t sampler
,
21 return __clc_reinterpret_v4f_to_v4i
(
22 __clc_read_imagef_tex
(image, sampler
, coord
));