示例#1
0
文件: memory.go 项目: xfong/gocl
func CLRetainMemObject(memobj CL_mem) CL_int {
	return CL_int(C.clRetainMemObject(memobj.cl_mem))
}
示例#2
0
文件: package.go 项目: 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))
}
示例#3
0
文件: memory.go 项目: xfong/tmpCL
func retainMemObject(b *MemObject) {
	if b.clMem != nil {
		C.clRetainMemObject(b.clMem)
	}
}