Mercurial > projects > cl4d
diff opencl/device.d @ 3:c78ffc9a7434 default tip
* corrected import declarations
* fixed bug in Program
author | Trass3r |
---|---|
date | Thu, 15 Apr 2010 03:20:03 +0200 |
parents | 3cea44337083 |
children |
line wrap: on
line diff
--- a/opencl/device.d Wed Apr 14 14:27:06 2010 +0200 +++ b/opencl/device.d Thu Apr 15 03:20:03 2010 +0200 @@ -3,7 +3,7 @@ */ module opencl.device; -import opencl.c.opencl; +import opencl.c.cl; import opencl.platform; import opencl.wrapper; @@ -14,6 +14,13 @@ CLPlatform _platform; public: + /// need a constructor without platform, if we need to wrap a retrieved cl_device_id + this(cl_device_id device) + { + super(device); + // TODO: retrieve platform ID via CL call and set _platform + } + /// this(CLPlatform platform, cl_device_id device) {