Mercurial > hg > Game > Cerium
annotate TaskManager/Gpu/GpuScheduler.h @ 1434:05d480ab70ba draft
add GpuScheduler
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 05 Apr 2012 19:05:35 +0900 |
parents | |
children | 9f6ba00ca15c |
rev | line source |
---|---|
1434 | 1 #ifndef INCLUDED_GPU_SCHEDULER |
2 #define INCLUDED_GPU_SCHEDULER | |
3 | |
4 #include "Scheduler.h" | |
5 | |
6 #ifdef __APPLE__ | |
7 #include <OpenCL/opencl.h> | |
8 #else | |
9 #include <CL/cl.h> | |
10 #endif | |
11 | |
12 class GpuScheduler : public Scheduler { | |
13 public: | |
14 void init_impl(int useRefDma); | |
15 void set_command_queue(cl_command_queue* _command_queue) { | |
16 command_queue = _command_queue; | |
17 } | |
18 | |
19 | |
20 private: | |
21 cl_command_queue *command_queue; | |
22 | |
23 }; | |
24 | |
25 #endif |