Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GLES20.glGenTextures(1, texture_id, 0);
- GLES20.glBindTexture(texture_target, texture_target);
- glTexImage2D(texture_target, 0, GL_RGBA, 640, 480, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
- cl_mem camera_image = clCreateFromGLTexture(m_context, CL_MEM_READ_WRITE, texture_target, 0, texture_id, &err);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement