Function ocl::raw::device_info [] [src]

pub fn device_info(device_id: DeviceIdRaw, info_type: cl_device_info) -> String

Returns a string containing requested information.

Currently lazily assumes everything is a char[] and converts to a String. Non-string info types need to be manually reconstructed from that. Yes this is retarded.

[TODO (low priority)]: Needs to eventually be made more flexible and should return an enum with a variant corresponding to the type of info requested. Could alternatively return a generic type and just blindly cast to it.