File: test_fill_image_3d.cl

package info (click to toggle)
beignet 0.9.3~really.0.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,644 kB
  • ctags: 15,542
  • sloc: cpp: 49,147; ansic: 13,274; lisp: 2,244; python: 933; sh: 626; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
__kernel void
test_fill_image_3d(__write_only image3d_t dst, uint color)
{
  int4 coord;
  int4 color4;
  color4.s0  = (color >> 24) & 0xFF;
  color4.s1  = (color >> 16) & 0xFF;
  color4.s2  = (color >> 8) & 0xFF;
  color4.s3  = color & 0xFF;
  coord.x = (int)get_global_id(0);
  coord.y = (int)get_global_id(1);
  coord.z = (int)get_global_id(2);
  write_imagei(dst, coord, color4);
}