Results 1 to 2 of 2

Thread: GPGPU with OpenGL ES 2.0 on iPhone3GS

  1. #1

    GPGPU with OpenGL ES 2.0 on iPhone3GS


    I'm trying to implement some GPGPU (General Purpose GPU) calculations in OpenGL ES 2.0 on the iPhone 3GS.

    Ideally you would use a floating point texture as data arrays and set it up so that the texel/fragment ratio would be 1:1. The calculation that is to be performed on the data is done in the fragment shader. But unless I'm misstaken there is no support for that on the iPhone. Or is there a way of storing floats in a texture?

    Or is there some other way that I could pass data so that there would be one data array element per fragment.

    I have a couple of ideas that I might try. And I would be very grateful for any comments on wheather they seem doable or not and if it can be done how.

    One idea that I have Is there any way of accessing the values of a GL_DEPTH_COMPONENT renderbufferbuffer from the shader? And is it possible to render to a GL_DEPTH_COMPONENT?

    The other idea is to make a texture with GL_LUMINANCE format. As i understand, if you store value L in a texel, the value is the fetched as color=(L,L,L,1). My idea would then be to use color.x for my calculation. But I would need to have a conversion function to get it to the value I want. Would this be possible? How many bits would i have in each texel?

    I would be very grateful for any help of any kind


  2. #2
    Senior Member
    Join Date
    May 2008

    Re: GPGPU with OpenGL ES 2.0 on iPhone3GS

    I can't really answer your questions off the top of my head, but I would recommend taking a peek at the OpenCL specification as it deals with similar issues. The spec can be found here:

    If your intent on coming up with your own method, then I'd recommend looking at the GLES2 and latest GLSL specs. Which can be found here:

Similar Threads

  1. Image Processing (GPGPU)
    By albus in forum OpenGL ES
    Replies: 2
    Last Post: 03-07-2011, 11:59 PM
  2. GPGPU and rendering calculations on same GPU?
    By garydeng in forum OpenCL
    Replies: 4
    Last Post: 12-05-2009, 08:23 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
Proudly hosted by Digital Ocean