示例#1
0
文件: sampler.go 项目: xfong/tmpCL
func retainSampler(s *Sampler) {
	if s.clSampler != nil {
		C.clRetainSampler(s.clSampler)
	}
}
示例#2
0
文件: package.go 项目: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainSampler.html
func RetainSampler(sampler Sampler) ErrorCode {
	return ErrorCode(C.clRetainSampler(sampler))
}
示例#3
0
func CLRetainSampler(sampler CL_sampler) CL_int {
	return CL_int(C.clRetainSampler(sampler.cl_sampler))
}