oglplus icon indicating copy to clipboard operation
oglplus copied to clipboard

ssbo setup/update

Open regnirpsj opened this issue 10 years ago • 6 comments

how would i setup and update a shader-storage buffer object defined like this:

struct light_t { /* lots of attributes */ };

layout (std430) buffer light_list_t {
  light_t light_list[];
};

i only seem to find examples using uniform buffer objects but not shader-storage buffer objects. or did i grep in the wrong places?

regnirpsj avatar Jul 26 '14 18:07 regnirpsj

There is no example of SSBO yet. I'll have to think of something.

matus-chochlik avatar Jul 26 '14 19:07 matus-chochlik

well, a list of lights or materials would be my standard use case. thanks for picking this up.

regnirpsj avatar Jul 26 '14 19:07 regnirpsj

any progress on this one? i've seen some change in the source tree with respect to ssbo enums but still don't see an example. i'm willing to clone an exisiting example and tinker with it if pointed in any/some/certain direction.

regnirpsj avatar Feb 13 '15 11:02 regnirpsj

Well, sadly no, I've been busy with some other things. I'll give this a bump on the TODO list. But of course any contributions are welcome, don't hesitate to contact me if you need some help.

matus-chochlik avatar Feb 13 '15 13:02 matus-chochlik

hi matus,

i implemented ssbo support based on uniform blocks. could you have a look at [e1506e71c3611d7c13c9f243adf5dbec05fe11cb] and tell me what you think?

regnirpsj avatar Jun 14 '15 10:06 regnirpsj

Hi, it's looking good! If you create a pull request (preferably based on current develop) I'll merge the changes. Thanks.

matus-chochlik avatar Jun 14 '15 17:06 matus-chochlik