Function cl3::sampler::retain_sampler[][src]

pub fn retain_sampler(sampler: cl_sampler) -> Result<(), cl_int>
Expand description

Retain an OpenCL sampler.
Calls clRetainSampler to increment the sampler reference count.

  • sampler - the OpenCL sampler.

returns an empty Result or the error code from the OpenCL C API function.