Tom Stellard | ccc0ec1 | 2015-09-21 14:47:53 +0000 | [diff] [blame] | 1 | #include <clc/clc.h> |
2 | |||||
3 | _CLC_OVERLOAD _CLC_DEF int2 get_image_dim (image2d_t image) { | ||||
4 | return (int2)(get_image_width(image), get_image_height(image)); | ||||
5 | } | ||||
6 | _CLC_OVERLOAD _CLC_DEF int4 get_image_dim (image3d_t image) { | ||||
7 | return (int4)(get_image_width(image), get_image_height(image), | ||||
8 | get_image_depth(image), 0); | ||||
9 | } |