Example #1
0
File: gl_cl.go Project: xfong/tmpCL
func (mb *MemObject) GetTextureMipmapLevel() (GLInt, error) {
	var val C.cl_GLint
	err := C.clGetGLTextureInfo(mb.clMem, (C.cl_gl_texture_info)(GlMipmapLevel), C.size_t(unsafe.Sizeof(val)), unsafe.Pointer(&val), nil)
	return (GLInt)(val), toError(err)
}
Example #2
0
File: gl_cl.go Project: xfong/tmpCL
func (mb *MemObject) GetTextureTarget() (GLTargets, error) {
	var val C.cl_GLenum
	err := C.clGetGLTextureInfo(mb.clMem, (C.cl_gl_texture_info)(GlTextureTarget), C.size_t(unsafe.Sizeof(val)), unsafe.Pointer(&val), nil)
	return (GLTargets)(val), toError(err)
}