summaryrefslogtreecommitdiff
path: root/src/cl_driver_type.h
blob: 891a33c6eb4b31952e597e76ed3e5a71c32740cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**************************************************************************
 * cl_driver:
 * Hide behind some call backs the buffer allocation / deallocation ... This
 * will allow us to make the use of a software performance simulator easier and
 * to minimize the code specific for the HW and for the simulator
 **************************************************************************/

/* Encapsulates command buffer / data buffer / kernels */
typedef struct _cl_buffer *cl_buffer;

/* Encapsulates buffer manager */
typedef struct _cl_buffer_mgr *cl_buffer_mgr;

/* Encapsulates the driver backend functionalities */
typedef struct _cl_driver *cl_driver;

/* Encapsulates the gpgpu stream of commands */
typedef struct _cl_gpgpu *cl_gpgpu;

/* Encapsulates the event  of a command stream */
typedef struct _cl_gpgpu_event *cl_gpgpu_event;

typedef struct _cl_context_prop *cl_context_prop;
typedef struct _cl_sampler *cl_sampler;