Results 1 to 4 of 4

Thread: Drawing Partially Complete OpenCL Images

  1. #1

    Drawing Partially Complete OpenCL Images

    Hi,

    I'm wondering if there is any way to display an OpenCL image as it is being written to? I'm creating an image using:

    clCreateFromGLTexture

    ...then acquiring/releasing the image via:

    clEnqueueAcquireGLObjects
    clEnqueueReleaseGLObjects

    I would like to be able to draw the partially-completed image; is something like this possible? Thanks for any suggestions.

    Mark

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    237
    No. While OpenCL has ownership the OpenGL side can't use it. If you have a long running OpenCL computation you could have it write many image images instead of one big one, and display those as they finish.

  3. #3
    Quote Originally Posted by Dithermaster View Post
    No. While OpenCL has ownership the OpenGL side can't use it. If you have a long running OpenCL computation you could have it write many image images instead of one big one, and display those as they finish.
    Thanks for confirming this behavior; it was what I'd expected from the documentation. I'll look into dividing into sub-regions and displaying those. Thanks again.

    ~M

  4. #4
    Thanks for the advice. I have the same question so your reply comes right just in time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean