示例#1
0
func CLRetainProgram(program CL_program) CL_int {
	return CL_int(C.clRetainProgram(program.cl_program))
}
示例#2
0
文件: package.go 项目: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainProgram.html
func RetainProgram(prog Program) ErrorCode {
	return ErrorCode(C.clRetainProgram(prog))
}
示例#3
0
文件: program.go 项目: xfong/tmpCL
func retainProgram(p *Program) {
	if p.clProgram != nil {
		C.clRetainProgram(p.clProgram)
	}
}