blob: 4d0a8e033562bd51d2587a77f1d3e1da153bbaf8 (
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
48
49
|
#ifndef COAL_DEVICEID_H
#define COAL_DEVICEID_H
#include "deviceinfo.h"
#include "CL/cl.h"
struct pipe_screen;
namespace Coal {
class DeviceId
{
public:
static DeviceId *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:
DeviceId(cl_uint type, struct pipe_screen *screen);
void fillInfo(cl_uint type);
private:
DeviceInfo m_info;
struct pipe_screen *m_screen;
};
inline cl_uint DeviceId::type() const
{
return m_info.type;
}
inline struct pipe_screen *DeviceId::screen() const
{
return m_screen;
}
}
struct _cl_device_id : public Coal::DeviceId
{};
#endif
|