How many shaders and framebuffers can I use ?

This topic contains 3 replies, has 2 voices, and was last updated by  marco 6 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30558

    WonwooLee
    Member

    Hello.

    I’m working several shaders and framebuffers for image processing, like blur, gradient computation, on iPhone 3GS/4 platform.

    As the number of shaders and framebuffer objects increase,

    I wonder how many shaders and framebuffers could I use on iPhone 3GS/4

    that are equipped with PowerVR SGX series.

    I looked for the information in OpenGL ES and GLSL ES specifications but I could find nothing about it.

    Anybody knows about this ?

    #34958

    marco
    Member

    Hi WonwooLee,

    there is no explicit limit on the number of shader or framebuffer objects you can create, but as soon as the system is not able to create any more you will get an GL_OUT_OF_MEMORY error.

    For example if you have a look at the renderbuffer objects specification it says at one point:

    “If OpenGL ES is unable to create a data store of the requested size, the error OUT_OF_MEMORY is generated.”

    Regards,

    Marco

    #34959

    WonwooLee
    Member

    Hi, marco.

    Thank you for your answer.

    If so, somehow, is the limit dependent on the video memory or something else ?

    #34960

    marco
    Member

    Hi WonwooLee,

    most likely it is dependant on the system memory as most embedded platforms employ a unified memory architecture (which means that the CPU and the GPU share the same physical memory).

    Regards,

    Marco

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.