xref: /llvm-project/libclc/generic/include/clc/image/image.h (revision a59fd49ba4cfe71a088d1d0aff8a80d29939c237)
1ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_width (image2d_t image);
2ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_width (image3d_t image);
3ccc0ec1dSTom Stellard 
4ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_height (image2d_t image);
5ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_height (image3d_t image);
6ccc0ec1dSTom Stellard 
7ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_depth (image3d_t image);
8ccc0ec1dSTom Stellard 
9ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type (image2d_t image);
10ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type (image3d_t image);
11ccc0ec1dSTom Stellard 
12ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_channel_order (image2d_t image);
13ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int get_image_channel_order (image3d_t image);
14ccc0ec1dSTom Stellard 
15ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int2 get_image_dim (image2d_t image);
16ccc0ec1dSTom Stellard _CLC_OVERLOAD _CLC_DECL int4 get_image_dim (image3d_t image);
179a7d4a94STom Stellard 
18*a59fd49bSTom Stellard _CLC_OVERLOAD _CLC_DECL void
19*a59fd49bSTom Stellard write_imagef(image2d_t image, int2 coord, float4 color);
20*a59fd49bSTom Stellard _CLC_OVERLOAD _CLC_DECL void
21*a59fd49bSTom Stellard write_imagei(image2d_t image, int2 coord, int4 color);
22*a59fd49bSTom Stellard _CLC_OVERLOAD _CLC_DECL void
23*a59fd49bSTom Stellard write_imageui(image2d_t image, int2 coord, uint4 color);
24*a59fd49bSTom Stellard 
259a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL float4
269a7d4a94STom Stellard read_imagef(image2d_t image, sampler_t sampler, int2 coord);
279a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL float4
289a7d4a94STom Stellard read_imagef(image2d_t image, sampler_t sampler, float2 coord);
299a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL int4
309a7d4a94STom Stellard read_imagei(image2d_t image, sampler_t sampler, int2 coord);
319a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL int4
329a7d4a94STom Stellard read_imagei(image2d_t image, sampler_t sampler, float2 coord);
339a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL uint4
349a7d4a94STom Stellard read_imageui(image2d_t image, sampler_t sampler, int2 coord);
359a7d4a94STom Stellard _CLC_OVERLOAD _CLC_DECL uint4
369a7d4a94STom Stellard read_imageui(image2d_t image, sampler_t sampler, float2 coord);
37