Exemple #1
0
func CLRetainMemObject(memobj CL_mem) CL_int {
	return CL_int(C.clRetainMemObject(memobj.cl_mem))
}
Exemple #2
0
// 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))
}
Exemple #3
0
func retainMemObject(b *MemObject) {
	if b.clMem != nil {
		C.clRetainMemObject(b.clMem)
	}
}