Function cl3::sampler::get_sampler_info[][src]

pub fn get_sampler_info(
    sampler: cl_sampler,
    param_name: cl_sampler_info
) -> Result<InfoType, cl_int>
Expand description

Get information specific to an OpenCL sampler object.
Calls clGetImageInfo to get the desired information about the sampler object.

  • sampler - the OpenCL sampler object.
  • param_name - the type of sampler information being queried, see: Sampler Object Queries.

returns a Result containing the desired information in an InfoType enum or the error code from the OpenCL C API function.