Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • $\begingroup$ "you may be able to use a 16-bit RGBA texture and a" AND A WHAT??? :) $\endgroup$ Commented Sep 19, 2015 at 1:12
  • 2
    $\begingroup$ Haha, this is what happens when you leave the tab open to finish later. Edited. $\endgroup$ Commented Sep 19, 2015 at 1:13
  • 1
    $\begingroup$ GL_SHADER_STORAGE_BARRIER_BIT Wrong barrier. The barrier you provide states how you will use the memory. Not how the shader wrote to it. You are doing a pixel transfer, so you need to use GL_TEXTURE_UPDATE_BARRIER_BIT $\endgroup$ Commented Nov 5, 2016 at 17:57
  • 1
    $\begingroup$ Are you sure? According to the docs, GL_TEXTURE_UPDATE_BARRIER_BIT is used when synchronizing calls to glTexImage, and has nothing to do with the memory used in storage buffers. I think you meant GL_PIXEL_BUFFER_BARRIER_BIT? $\endgroup$ Commented Dec 9, 2016 at 4:00