Example #1
0
File: memory.go Project: xfong/gocl
func CLRetainMemObject(memobj CL_mem) CL_int {
	return CL_int(C.clRetainMemObject(memobj.cl_mem))
}
Example #2
0
File: package.go Project: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainMemObject.html
func RetainMemObject(mem Mem) ErrorCode {
	return ErrorCode(C.clRetainMemObject(mem))
}
Example #3
0
func retainMemObject(b *MemObject) {
	if b.clMem != nil {
		C.clRetainMemObject(b.clMem)
	}
}