blob: 8f69b7540200c0f97f08b6bab4785e92ffbec43e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
__kernel void
test_get_image_info(__write_only image3d_t src, __global int *size, __global int *fmt)
{
int id = (int)get_global_id(0);
int w, h, depth;
w = get_image_width(src);
h = get_image_height(src);
depth = get_image_depth(src);
int channel_data_type = get_image_channel_data_type(src);
int channel_order = get_image_channel_order(src);
size[id] = (w << 20 | h << 8 | depth);
fmt[id] = (channel_data_type << 16 | channel_order);
}
|