[][src]Function open_cl_low_level::platform::cl_get_platform_info

pub unsafe fn cl_get_platform_info<T: Copy>(
    platform: cl_platform_id,
    info_flag: cl_platform_info
) -> Output<ClPointer<T>>

Gets platform info for a given cl_platform_id and the given cl_platform_info flag via the OpenCL FFI call to clGetPlatformInfo.alloc

Safety

Use of an invalid cl_platform_id is undefined behavior. A mismatch between the types that the info flag is supposed to result in and the T of the Output<ClPointer> is undefined behavior. Be careful. There be dragons.