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 }
// 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)) }
//////////////// Basic Functions //////////////// func releaseSampler(s *Sampler) { if s.clSampler != nil { C.clReleaseSampler(s.clSampler) s.clSampler = nil } }
func CLReleaseSampler(sampler CL_sampler) CL_int { return CL_int(C.clReleaseSampler(sampler.cl_sampler)) }