Hi Alon, i will work tomorrow on that, if you have other request send me it.

Anthony LIOT
Senior Software Engineer (OSX/iOS)

MOB. +336 26 46 36 77

> Le 29 juil. 2013 à 22:48, Alon Zakai <notifications@github.com> a écrit :
> 
> In src/library_opencl.js:
> 
> > +        case (0x1016) /* CL_DEVICE_IMAGE_SUPPORT*/:
> > +          res = CL.devices[idx].getDeviceInfo(WebCL.CL_DEVICE_IMAGE_SUPPORT); // return true or false
> > +          {{{ makeSetValue('param_value', '0', 'res', 'i32') }}};
> > +          size = 1;
> > +          break; 
> > +        case (0x1011) /* CL_DEVICE_IMAGE2D_MAX_WIDTH*/:
> > +          res = CL.devices[idx].getDeviceInfo(WebCL.CL_DEVICE_IMAGE2D_MAX_WIDTH); // return size_t
> > +          {{{ makeSetValue('param_value', '0', 'res', 'i32') }}};
> > +          size = 1;
> > +          break;   
> > +        case (0x1012) /* CL_DEVICE_IMAGE2D_MAX_HEIGHT*/:
> > +          res = CL.devices[idx].getDeviceInfo(WebCL.CL_DEVICE_IMAGE2D_MAX_HEIGHT); // return size_t
> > +          {{{ makeSetValue('param_value', '0', 'res', 'i32') }}};
> > +          size = 1;
> > +          break;   
> > +        case (0x1013) /* CL_DEVICE_IMAGE3D_MAX_WIDTH*/:
> could all these be replaced with a lookup table?
> 
> res = CL.devices[idx].getDeviceInfo(table[param]);
> {{{ makeSetValue('param_value', '0', 'res', 'i32') }}};
> size = 1; 
> —
> Reply to this email directly or view it on GitHub.