Exemple #1
0
func (s *Sampler) release() error {
	if s.id != nil {
		if err := C.clReleaseSampler(C.cl_sampler(s.id)); err != C.CL_SUCCESS {
			return Cl_error(err)
		}
	}
	return nil
}
Exemple #2
0
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clReleaseSampler.html
func ReleaseSampler(sampler Sampler) ErrorCode {
	return ErrorCode(C.clReleaseSampler(sampler))
}
Exemple #3
0
//////////////// Basic Functions ////////////////
func releaseSampler(s *Sampler) {
	if s.clSampler != nil {
		C.clReleaseSampler(s.clSampler)
		s.clSampler = nil
	}
}
Exemple #4
0
func CLReleaseSampler(sampler CL_sampler) CL_int {
	return CL_int(C.clReleaseSampler(sampler.cl_sampler))
}