logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

clReleaseSampler - Decrements the sampler reference count.

Authors

TheKhronosGroup

Errors

       Returns CL_SUCCESS if the function is executed successfully. Otherwise, it returns one of the following
       errors:

       •   CL_INVALID_SAMPLER if sampler is not a valid sampler object.

       •   CL_OUT_OF_RESOURCES if there is a failure to allocate resources required by the OpenCL implementation
           on the device.

       •   CL_OUT_OF_HOST_MEMORY if there is a failure to allocate resources required by the OpenCL
           implementation on the host.

Name

       clReleaseSampler - Decrements the sampler reference count.

       cl_intclReleaseSampler(cl_samplersampler);

Notes

        1. OpenCL Specification
           page 129, section 5.5.1 - Creating Sampler Objects

The Khronos Group                                  11/18/2024                             CLRELEASESAMPLER(3clc)

Parameters

sampler

           Specifies the sampler being retained.

See Also

clCreateSampler(3clc), clRetainSampler(3clc), clGetSamplerInfo(3clc)

Specification

OpenCLSpecification[1]

See Also