Results 1 to 3 of 3

Thread: Writing to an OpenGL Texture

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Writing to an OpenGL Texture

    Hi there,

    Is it possible to directly write kernel output to an OpenGL texture? Looking at the Apple Samples (Noise Example to be specific) they write to a Buffer Object and copy it to an Image. So can i write to an OpenCL image object? I've created an image object and enqueued it via EnqueueAcquireGLObject. App doesn't crash, but doesn't work either Maybe i am missing something obvious. Maybe there even are examples of directly writing to an OpenGL texture?

    Thx for any hints,
    pettersson

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Writing to an OpenGL Texture

    There should be Apple examples for this. On the Apple platform you need to create a CL context from a GL context. You can then access GL textures from CL.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Re: Writing to an OpenGL Texture

    Hi,

    i found the problem, actually it was a bug with my OpenGL code rather than OpenCL.

    Thanks anyway,
    pettersson

Similar Threads

  1. Replies: 2
    Last Post: 09-22-2012, 05:20 PM
  2. texture in opengl es 1.1
    By emma in forum OpenGL ES 1.X - fixed function hardware
    Replies: 0
    Last Post: 05-04-2010, 04:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •