Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: sub-bindings with GL_SHADER_STORAGE_BUFFER

  1. #1
    Intern Contributor
    Join Date
    Oct 2012
    Posts
    60

    sub-bindings with GL_SHADER_STORAGE_BUFFER

    Hi

    How can I access a particular buffer at a specific sub-binding for GL_SHADER_STORAGE_BUFFER when doing a map out?


    For example, in the example below, there is no place to specify the sub-binding.
    Code :
    char* output=(char *)glMapBuffer(GL_SHADER_STORAGE_BUFFER,GL_READ_ONLY);

    If my shader storage buffer had two buffers associated with it at two different binding point, how could I just map out the buffer at sub-binding point 1?

    Code :
    glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, shader_buffer[0]);
    glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, shader_buffer[1]);

  2. #2
    Intern Contributor
    Join Date
    Oct 2012
    Posts
    60
    from the docs, there is no way to do this it seems...

Tags for this Thread

Posting Permissions

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