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