Remove Info
enums to support new OpenCL versions and extensions.
#13
Labels
enhancement
New feature or request
Info
enums to support new OpenCL versions and extensions.
#13
The
*_info
functions take a*Info
enum to get the relevant type of data for the given value.Therefore the
*_info
functions can only handle known values; new OpenCL versions and extensions often provide new values to call:clGetPlatformInfo
,clGetDeviceInfo
,clGetProgramInfo
, etc.If the
*_info
functions just took acl_platform_info
,cl_device_info
,cl_program_info
, etc parameter instead, then the functions could return a Result<Vec, cl_int> for unknown but valid OpenCL values.This would be a major change to the interface, but it would simplify the software and make it more resilient to OpenCL changes.
The text was updated successfully, but these errors were encountered: