• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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}
10