Clang Project

clang_source_code/test/PCH/ocl_types.h
1/* Used with the ocl_types.cl test */
2
3// image1d_t
4typedef image1d_t img1d_t;
5
6// image1d_array_t
7typedef image1d_array_t img1darr_t;
8
9// image1d_buffer_t
10typedef image1d_buffer_t img1dbuff_t;
11
12// image2d_t
13typedef image2d_t img2d_t;
14
15// image2d_array_t
16typedef image2d_array_t img2darr_t;
17
18// image3d_t
19typedef image3d_t img3d_t;
20
21// sampler_t
22typedef sampler_t smp_t;
23
24// event_t
25typedef event_t evt_t;
26
27#if __OPENCL_VERSION__ >= 200
28
29// clk_event_t
30typedef clk_event_t clkevt_t;
31
32// queue_t
33typedef queue_t q_t;
34
35// reserve_id_t
36typedef reserve_id_t reserveid_t;
37
38// image2d_depth_t
39typedef image2d_depth_t img2ddep_t;
40
41// image2d_array_depth_t
42typedef image2d_array_depth_t img2darr_dep_t;
43
44#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
45// image2d_msaa_t
46typedef image2d_msaa_t img2dmsaa_t;
47
48// image2d_array_msaa_t
49typedef image2d_array_msaa_t img2darrmsaa_t;
50
51// image2d_msaa_depth_t
52typedef image2d_msaa_depth_t img2dmsaadep_t;
53
54// image2d_array_msaa_depth_t
55typedef image2d_array_msaa_depth_t img2darrmsaadep_t;
56
57// pipe specifier
58
59typedef struct _person {
60  int id;
61  const char *name;
62} Person;
63
64void int_pipe_function(pipe int);
65
66void person_pipe_function(pipe Person);
67#endif
68