Function create_sampler_with_properties

Source
pub fn create_sampler_with_properties(
    context: &WrappedMutablePointer<c_void>,
    sampler_properties: &Option<Vec<cl_properties>>,
) -> Result<WrappedMutablePointer<c_void>, OpenCLAPIError>
Expand description
  • context must be a valid OpenCL context.
  • sampler_properties specifies a list of sampler property names and their corresponding values. Each sampler property name is immediately followed by the corresponding desired value. The list is terminated with 0. The list of supported properties is described in the Sampler Properties table. If a supported property and its value is not specified in sampler_properties, its default value will be used. sampler_properties can be NULL in which case the default values for supported sampler properties will be used.