Example #1
0
func CLRetainProgram(program CL_program) CL_int {
	return CL_int(C.clRetainProgram(program.cl_program))
}
Example #2
0
File: package.go Project: 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))
}
Example #3
0
func retainProgram(p *Program) {
	if p.clProgram != nil {
		C.clRetainProgram(p.clProgram)
	}
}