blob: f586652c65a5d88413e979fb3e700fe5b1c89b1b (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef DEVICE_H
#define DEVICE_H
#include "deviceinfo.h"
#include "CL/cl.h"
struct pipe_screen;
class Device
{
public:
static Device *create(cl_uint type);
public:
inline cl_uint type() const;
inline struct pipe_screen *screen() const;
cl_int info(cl_device_info opcode,
size_t paramValueSize,
void * paramValue,
size_t * paramValueSizeRet) const;
private:
Device(cl_uint type, struct pipe_screen *screen);
void fillInfo(cl_uint type);
private:
DeviceInfo m_info;
struct pipe_screen *m_screen;
};
inline cl_uint Device::type() const
{
return m_info.type;
}
inline struct pipe_screen *Device::screen() const
{
return m_screen;
}
struct _cl_device_id : public Device
{};
#endif
|